Allow query parameters in parameterized view names - #112877
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. |
|
Workflow [PR], commit [bf2108e] Summary: ❌
|
|
@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
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.