#9342·greptimedb

Support non-millisecond time index units in the logical table batcher bulk path

Author: sunng87Created Sep 24, 2026Updated Sep 24, 2026

Follow-up to #9236 (review feedback in https://github.com/GreptimeTeam/greptimedb/pull/9236).

The logical table batcher's bulk encode path only produces millisecond timestamp batches (can_batch_metric_rows whitelist, columns_taxonomy in src/servers/src/batcher/logical_table/). With a physical metric table created with a non-millisecond time index (e.g. TIMESTAMP(6)), requests are currently routed to the ordinary insert path (which converts units) instead of being batched:

  • Inserter::can_batch_metric_rows only whitelists TimestampMillisecond/Float64/String.
  • LogicalTablePendingRowsBatcher::accepts_physical_table_time_index gates prom remote write v1/v2 away from the bulk path for non-millisecond physical tables.

Make the bulk encoder unit-aware so non-millisecond physical tables can use logical batching too.