mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-23 06:30:05 +00:00
feat: adds parse options for SQL parser (#3193)
* feat: adds parse options for parser and timezone to scan request * chore: remove timezone in ScanRequest * feat: remove timezone in parse options and adds type checking to parititon columns * fix: comment * chore: apply suggestions Co-authored-by: Yingwen <realevenyag@gmail.com> * fix: format --------- Co-authored-by: Yingwen <realevenyag@gmail.com>
This commit is contained in:
@@ -531,9 +531,10 @@ CREATE TABLE {table_name} (
|
||||
.collect::<HashMap<u32, u64>>();
|
||||
assert!(region_to_dn_map.len() <= instance.datanodes().len());
|
||||
|
||||
let stmt = QueryLanguageParser::parse_sql(&format!(
|
||||
"SELECT ts, a, b FROM {table_name} ORDER BY ts"
|
||||
))
|
||||
let stmt = QueryLanguageParser::parse_sql(
|
||||
&format!("SELECT ts, a, b FROM {table_name} ORDER BY ts"),
|
||||
&QueryContext::arc(),
|
||||
)
|
||||
.unwrap();
|
||||
let LogicalPlan::DfPlan(plan) = instance
|
||||
.frontend()
|
||||
|
||||
Reference in New Issue
Block a user