Repository navigation
Allow query parameters in parameterized view names - #112877
qiuyanjun888 wants to merge 7 commits into
Conversation
|
@nikitamikhaylov could you please review this? This is a scoped follow-up to #106635: ordinary function names still reject query parameters, while function-like table expressions accept an @vitlibar cc for context. |
|
@qiuyanjun888 check the CI failures |
Resolution of the
|
Recompute `ASTFunction` compoundness from the substituted name so qualified parameterized view names work in legacy execution and `EXPLAIN SYNTAX`. ClickHouse#112877 (comment) ClickHouse#112877
|
@qiuyanjun888 the CI failed |
|
@qiuyanjun888 are you going to continue working on this? |
|
Maybe not |
Closes: #105037
Parameterized views already accept query parameters for their arguments, but using an
Identifierquery parameter for the view name producesUNKNOWN_FUNCTIONon releases andSYNTAX_ERRORon master. Preserve the unresolved name inASTFunctionuntilReplaceQueryParameterVisitorresolves it, while continuing to reject query parameters as ordinary scalar function names. Add stateless coverage for execution, aliases, missing parameters, and AST JSON round-trip.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Allow
Identifierquery parameters to select a parameterized view by name.Workflow [PR]
Sync PR [sync-upstream/pr/112877]