mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 20:00:36 +00:00
feat: simple limit impl in PartSort (#4922)
* feat: simple limit impl in PartSort Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * fix: update time_index method to return a non-optional String Co-authored-by: Yingwen <realevenyag@gmail.com> Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * use builtin limit Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * add more info to analyze display Signed-off-by: Ruihang Xia <waynestxia@gmail.com> * update sqlness Signed-off-by: Ruihang Xia <waynestxia@gmail.com> --------- Signed-off-by: Ruihang Xia <waynestxia@gmail.com> Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
@@ -146,13 +146,15 @@ impl RegionScanExec {
|
||||
let _ = scanner.prepare(partition_ranges, distinguish_partition_range);
|
||||
}
|
||||
|
||||
pub fn time_index(&self) -> Option<String> {
|
||||
pub fn time_index(&self) -> String {
|
||||
self.scanner
|
||||
.lock()
|
||||
.unwrap()
|
||||
.schema()
|
||||
.timestamp_column()
|
||||
.map(|x| x.name.clone())
|
||||
.metadata()
|
||||
.time_index_column()
|
||||
.column_schema
|
||||
.name
|
||||
.clone()
|
||||
}
|
||||
|
||||
pub fn tag_columns(&self) -> Vec<String> {
|
||||
|
||||
Reference in New Issue
Block a user