mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
fix: sort by time enable in follow (#5151)
This commit is contained in:
@@ -311,7 +311,9 @@ impl TableProvider for NewListingTable {
|
||||
)
|
||||
}
|
||||
},
|
||||
None => {} // no ordering required
|
||||
None => {
|
||||
log::debug!("don't not set split_file_groups_by_statistics");
|
||||
} // no ordering required
|
||||
};
|
||||
|
||||
// extract types of partition columns
|
||||
|
||||
@@ -100,6 +100,14 @@ pub async fn search(
|
||||
.downcast_ref::<NewEmptyExec>()
|
||||
.unwrap();
|
||||
|
||||
// because when init ctx we don't know this information
|
||||
if empty_exec.sorted_by_time() {
|
||||
ctx.state_ref().write().config_mut().options_mut().set(
|
||||
"datafusion.execution.split_file_groups_by_statistics",
|
||||
"true",
|
||||
)?;
|
||||
}
|
||||
|
||||
// get stream name
|
||||
let stream_name = empty_exec.name();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user