From eacb0f53b36786d744ebd2a3ea3e8ca98a6fff63 Mon Sep 17 00:00:00 2001 From: Nikhil Sinha Date: Wed, 28 Jan 2026 14:34:04 +1100 Subject: [PATCH] fix: update datatype in FieldStats and QueryRow to f64 this is required because we ingest as f64 with i64, the type casting fails --- src/storage/field_stats.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/storage/field_stats.rs b/src/storage/field_stats.rs index 359f6bdf8..18da4231c 100644 --- a/src/storage/field_stats.rs +++ b/src/storage/field_stats.rs @@ -488,18 +488,18 @@ pub struct DataSetStatsRequest { #[derive(Serialize, Deserialize, Debug, Clone)] pub struct FieldStats { - field_count: i64, - distinct_count: i64, - distinct_values: IndexMap, + field_count: f64, + distinct_count: f64, + distinct_values: IndexMap, } #[derive(Serialize, Deserialize)] pub struct QueryRow { field_name: String, - field_count: i64, - distinct_count: i64, + field_count: f64, + distinct_count: f64, distinct_value: String, - distinct_value_count: i64, + distinct_value_count: f64, } /// API handler to get the field stats for a dataset