Skip to content

Commit 187a4e6

Browse files
fix: stats for timestamp fields for pstats (#1608)
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
1 parent a68d90f commit 187a4e6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/storage/field_stats.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ fn format_arrow_value(array: &dyn Array, idx: usize) -> String {
416416
|arr: &TimestampMillisecondArray| {
417417
let timestamp = arr.value(idx);
418418
chrono::DateTime::from_timestamp_millis(timestamp)
419-
.map(|dt| dt.to_string())
419+
.map(|dt| dt.naive_utc().format("%Y-%m-%dT%H:%M:%S%.3f").to_string())
420420
.unwrap_or_else(|| "INVALID_TIMESTAMP".to_string())
421421
}
422422
),

0 commit comments

Comments
 (0)