ClickHouse/src/Databases
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
..
MySQL MaterializedMySQL: Introduce MySQL Binlog Client 2024-01-03 15:26:09 +01:00
PostgreSQL Support query parameters in ALTER TABLE ... PART 2024-01-15 14:16:54 +03:00
SQLite validation and left over fixes 2023-12-29 20:06:07 -08:00
DatabaseAtomic.cpp initial refactor of db registration 2023-12-28 18:59:45 -08:00
DatabaseAtomic.h Revert "Replace --no-system-tables with loading virtual tables of system database lazily" 2023-12-14 09:07:47 +01:00
DatabaseDictionary.cpp initial refactor of db registration 2023-12-28 18:59:45 -08:00
DatabaseDictionary.h Make IDatabase::getTablesIterator() const. 2021-08-23 23:41:45 +03:00
DatabaseFactory.cpp support hints for database engine 2024-01-01 21:31:22 -08:00
DatabaseFactory.h support hints for database engine 2024-01-01 21:31:22 -08:00
DatabaseFilesystem.cpp few more fixes 2023-12-30 09:26:53 -08:00
DatabaseFilesystem.h Revert "Merge pull request #53044 from ClickHouse/revert-52155-database-filesystem-remove-catch" 2023-08-04 12:41:55 +02:00
DatabaseHDFS.cpp Some fixups 2024-01-07 22:28:08 +00:00
DatabaseHDFS.h Revert "Merge pull request #51149 from ClickHouse/revert-48821-localfilefunction" 2023-06-21 00:29:46 +02:00
DatabaseLazy.cpp style fixes and cleanup 2023-12-29 16:38:17 -08:00
DatabaseLazy.h Revert "Replace --no-system-tables with loading virtual tables of system database lazily" 2023-12-14 09:07:47 +01:00
DatabaseMemory.cpp initial refactor of db registration 2023-12-28 18:59:45 -08:00
DatabaseMemory.h Move temp database clean up into new function removeDataPath() 2023-02-14 13:22:15 +00:00
DatabaseOnDisk.cpp Better text_log with ErrnoException 2023-12-15 19:27:56 +01:00
DatabaseOnDisk.h wait for database to load before shutdown 2023-11-25 15:42:37 +00:00
DatabaseOrdinary.cpp Merge pull request #57697 from ClickHouse/dependency-failure 2024-01-09 14:03:35 +01:00
DatabaseOrdinary.h get rid of defaults to make clang-tidy happy 2023-11-28 18:21:47 +00:00
DatabaseReplicated.cpp DatabaseReplicated: too much success 2024-01-01 22:01:25 +01:00
DatabaseReplicated.h Merge pull request #57337 from ClickHouse/drop_database_replica_no_throw 2023-12-20 16:48:58 +01:00
DatabaseReplicatedHelpers.cpp Use shard and replica name from Replicated database arguments (#31488) 2021-11-23 12:41:54 +03:00
DatabaseReplicatedHelpers.h Use shard and replica name from Replicated database arguments (#31488) 2021-11-23 12:41:54 +03:00
DatabaseReplicatedSettings.cpp review suggestions 2021-02-20 02:41:58 +03:00
DatabaseReplicatedSettings.h update default settings for Replicated database 2023-05-22 19:32:32 +02:00
DatabaseReplicatedWorker.cpp Prepare the introduction of more keeper faults 2023-11-16 15:46:39 +01:00
DatabaseReplicatedWorker.h Implement SYSTEM DROP DATABASE REPLICA (#42807) 2022-12-29 15:34:11 +01:00
DatabaseS3.cpp register all remaining databases 2023-12-29 16:38:02 -08:00
DatabaseS3.h Revert "Merge pull request #51149 from ClickHouse/revert-48821-localfilefunction" 2023-06-21 00:29:46 +02:00
DatabasesCommon.cpp Things 2023-12-28 17:56:05 +00:00
DatabasesCommon.h Revert "Replace --no-system-tables with loading virtual tables of system database lazily" 2023-12-14 09:07:47 +01:00
DatabasesOverlay.cpp Revert "Merge pull request #51149 from ClickHouse/revert-48821-localfilefunction" 2023-06-21 00:29:46 +02:00
DatabasesOverlay.h Revert "Merge pull request #51149 from ClickHouse/revert-48821-localfilefunction" 2023-06-21 00:29:46 +02:00
DDLDependencyVisitor.cpp fix build 2023-05-08 00:57:13 +02:00
DDLDependencyVisitor.h Move DDLDependencyVisitor from header to cpp file. 2022-12-12 19:19:11 +01:00
DDLLoadingDependencyVisitor.cpp Fix build without libpqxx 2023-12-11 20:16:13 +01:00
DDLLoadingDependencyVisitor.h Fix startup failure due to TTL dependency 2023-11-09 04:31:49 +00:00
DDLRenamingVisitor.cpp fix another issue with dependencies 2023-05-05 16:27:12 +02:00
DDLRenamingVisitor.h Improve handling predefined databases and tables. 2022-06-30 08:37:17 +02:00
IDatabase.cpp Merge pull request #57342 from bharatnc/ncb/better-hint-if-table-doesnt-exist 2023-12-15 12:35:13 +01:00
IDatabase.h Revert "Replace --no-system-tables with loading virtual tables of system database lazily" 2023-12-14 09:07:47 +01:00
LoadingStrictnessLevel.cpp fix 2022-07-21 20:32:33 +02:00
LoadingStrictnessLevel.h fix 2022-08-03 15:33:55 +02:00
NormalizeAndEvaluateConstantsVisitor.cpp fix too aggressive evaluation of args in default column expr 2022-12-23 20:57:19 +01:00
NormalizeAndEvaluateConstantsVisitor.h Referential dependencies for RESTORE (#43834) 2022-12-02 15:05:46 +01:00
registerDatabases.cpp register all remaining databases 2023-12-29 16:38:02 -08:00
registerDatabases.h style fixes and cleanup 2023-12-29 16:38:17 -08:00
removeWhereConditionPlaceholder.cpp fix 2023-05-08 14:49:45 +02:00
removeWhereConditionPlaceholder.h fix 2023-05-08 14:49:45 +02:00
TablesDependencyGraph.cpp integrate with Server and TablesLoader 2023-05-01 11:56:00 +00:00
TablesDependencyGraph.h Overhaul dependencies 2023-12-28 17:56:04 +00:00
TablesLoader.cpp Add metrics for the number of queued jobs, which is useful for the IO thread pool 2023-11-18 19:07:59 +01:00
TablesLoader.h remove cruft from TablesLoader 2023-12-15 22:54:47 -08:00