fix sort index by date (#2124)

closes #2112
This commit is contained in:
PSeitz
2023-08-14 23:36:52 +08:00
committed by GitHub
parent 2e109018b7
commit ed1deee902
2 changed files with 90 additions and 38 deletions

View File

@@ -101,6 +101,10 @@ impl ColumnarWriter {
let Some(numerical_col_writer) = self
.numerical_field_hash_map
.get::<NumericalColumnWriter>(sort_field.as_bytes())
.or_else(|| {
self.datetime_field_hash_map
.get::<NumericalColumnWriter>(sort_field.as_bytes())
})
else {
return Vec::new();
};