We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
query = `select date, path, splitByChar('/', path)[2] as path_b from( select 'pathA/pathB/pathC' as path, '2024-09-10' as date ) where toDate(date) = '2024-09-01' and '2024-09-30' and splitByChar('/', path)[1] = 'pathA'` parser := clickhouse.NewParser(strings.TrimSpace(query)) // Parse query into AST statements, err := parser.ParseStmts() if err != nil { panic(err.Error()) }
Both where conditions will report errors.
[recovered] panic: line 4:19 <EOF> or ';' was expected, but got: "between" where toDate(date) between '2024-09-01' and '2024-09-30'
[recovered] panic: line 5:30 <EOF> or ';' was expected, but got: "=" and splitByChar('/', path)[1] = 'pathA'
The text was updated successfully, but these errors were encountered:
@Scholar-Li Thanks for your report, will fix it soon.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Both where conditions will report errors.
The text was updated successfully, but these errors were encountered: