From beb5b782aa1abe24ff8a5fe1d25146352f8ff2b4 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Wed, 1 Apr 2026 22:12:31 +1100 Subject: [PATCH] fix: stats for timestamp fields for pstats update millisecond timestamp formatting to naive_utc earlier: ingestion - 2026-04-01T10:31:52.161, field stats distinct value - 2026-04-01 10:31:52.161 UTC now: field stats distinct value - 2026-04-01T10:31:52.161 --- src/storage/field_stats.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/storage/field_stats.rs b/src/storage/field_stats.rs index efc2aaaee..ccc606b5e 100644 --- a/src/storage/field_stats.rs +++ b/src/storage/field_stats.rs @@ -416,7 +416,7 @@ fn format_arrow_value(array: &dyn Array, idx: usize) -> String { |arr: &TimestampMillisecondArray| { let timestamp = arr.value(idx); chrono::DateTime::from_timestamp_millis(timestamp) - .map(|dt| dt.to_string()) + .map(|dt| dt.naive_utc().format("%Y-%m-%dT%H:%M:%S%.3f").to_string()) .unwrap_or_else(|| "INVALID_TIMESTAMP".to_string()) } ),