New issue
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
feat(query): add chain function support #13799
Conversation
Should we add an experimental feature gate for chain function? |
Looks like it's syntactic sugar, it has no impact on existing usage, so maybe no need to add the setting. Settings can't control AST's behavior, this is already rewritten into a normal function after parser. |
A feature gate makes room for future syntax breaking changes. Otherwise, the syntax is sealed now. The syntax behavior can by specified by the Dialect passed to the parser. |
I hereby agree to the terms of the CLA available at: https://databend.rs/dev/policies/cla/
Summary
Summary about this PR
Changes:
DotAccess
in expr element which will handle thecolumn_ref
,chain_function
,map_access
in pos travel.Also fix the bug of:
This pr adds chain function support which will take the receiver into the first arg of normal function, examples:
This change isβ