ClickHouse/src/Storages/WindowView
Azat Khuzhin 48a700edba Support query parameters in ALTER TABLE ... PART
But, to make this happen it is not enough to simply fix the parser, the
whole ASTs for ALTER should be fixed as well, since they store `ASTPtr`
instead of `IAST *`, and so because of `ReplaceQueryParameterVisitor`
does not work for ALTER query.

So this patch converts ASTPtr to `IAST *` for ASTAlterQuery and
ASTAlterCommand (plus it also fixes when the children for
ASTAlterCommand had not been updated sometimes).

And only after this it is possible to adjust the parser (see
places with `parser_string_and_substituion` in the parser code).

v2: also fix ASTAlterCommand::clone (add missing components) and ParserAlterCommand::parseImpl
v3: fix APPLY DELETED MASK
v4: fix mutations_execute_nondeterministic_on_initiator/mutations_execute_subqueries_on_initiator
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-01-15 14:16:54 +03:00
..
StorageWindowView.cpp Support query parameters in ALTER TABLE ... PART 2024-01-15 14:16:54 +03:00
StorageWindowView.h Revert "Merge pull request #58274 from ClickHouse/revert-58267" 2023-12-28 14:07:59 +01:00
WindowViewSource.h Merge branch 'master' into refactor-read-metrics-and-callbacks 2022-05-25 16:27:40 +02:00