mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-06 22:42:22 +00:00
7cad0050c0
* Add optional parentheses to TTL element and alter command
* Add some basic tests
* Extend tests with more test cases
* Add one more test case
* Add server setting to control new formatting behavior
* Automatic style fix
* Fix segfault in `clickhouse-format` related to new server setting
* Remove format_ttl_expressions_with_parentheses
* Fix unit test compilation failures
* Introduce global flag to control the new formatting behavior
* Revert "Fix segfault in `clickhouse-format` related to new server setting"
This reverts commit d7131a3145
.
* Revert accidental changes
* Revert accidental include reorder
* Revert accidental changes
* Enable new format in client and local server
---------
Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
7 lines
403 B
Plaintext
7 lines
403 B
Plaintext
--- Alter commands in parens
|
|
ALTER TABLE a\n MODIFY TTL expr GROUP BY some_key,\n ADD COLUMN `a` Int64
|
|
ALTER TABLE a\n MODIFY TTL expr TO VOLUME \'vol1\', expr2 + toIntervalYear(2) TO VOLUME \'vol2\',\n DROP COLUMN c
|
|
--- Check only consistent parens around alter commands are accepted
|
|
ALTER TABLE a\n DROP COLUMN b,\n DROP COLUMN c
|
|
ALTER TABLE a\n DROP COLUMN b,\n DROP COLUMN c
|