Nikita Mikhaylov
8fef0b71c4
Merge pull request #60350 from ClickHouse/revert-54901-pufit/views-sql-security
...
Revert "Add definers for views"
2024-02-23 15:15:36 +01:00
Igor Nikonov
90b1f8544a
Merge pull request #60227 from ClickHouse/fix-clone-ast-for-rename
...
Fix: IAST::clone() for RENAME
2024-02-23 14:48:14 +01:00
Sergei Trifonov
2c766cf75f
Merge pull request #59507 from ClickHouse/alter-table-forget-partition
...
Add `FORGET PARTITION` query to remove old partition nodes from ZooKeeper
2024-02-23 12:55:08 +01:00
Raúl Marín
464b5e0e15
Revert "Add definers for views ( #54901 )"
...
This reverts commit 57306706b3
.
2024-02-23 12:44:31 +01:00
János Benjamin Antal
7cad0050c0
Disambiguate alter commands list ( #59532 )
...
* 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>
2024-02-22 19:17:15 +01:00
pufit
57306706b3
Add definers for views ( #54901 )
2024-02-22 17:47:50 +01:00
Kseniia Sumarokova
fb7924cdb1
Merge pull request #60233 from ClickHouse/hide-sensitive-info-in-s3-queue
...
Hide sensitive info for s3queue
2024-02-22 11:37:15 +01:00
kssenii
c05c3944d1
Hide sensitive info for s3queue
2024-02-21 16:49:53 +01:00
Igor Nikonov
7411e81bec
Fix style
2024-02-21 15:00:25 +00:00
Igor Nikonov
f4643b8341
Fix: RENAME AST clone
...
+ minor cleanup
2024-02-21 14:14:33 +00:00
Antonio Andelic
fee1565780
Revert "Check stack size in Parser"
2024-02-21 11:33:08 +01:00
Sergei Trifonov
d2aebe2c9a
Merge branch 'master' into alter-table-forget-partition
2024-02-20 13:56:50 +01:00
Robert Schulze
5474f36e75
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-20 10:09:57 +00:00
Robert Schulze
6f6e74ad8b
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-19 15:19:13 +00:00
Alexey Milovidov
e2de74cf66
Fix debug
2024-02-19 05:34:40 +01:00
Alexey Milovidov
6fd563df52
Miscellaneous
2024-02-19 02:58:51 +01:00
Alexey Milovidov
6eff309185
Merge branch 'master' of github.com:ClickHouse/ClickHouse into check-stack-size-in-parser
2024-02-19 02:44:47 +01:00
Alexey Milovidov
232fe0dd1b
Fix inconsistent formatting of SELECT ... FROM (EXPLAIN ...)
2024-02-18 05:38:34 +01:00
Alexey Milovidov
9686bb51bc
Style check for abbreviations
2024-02-17 02:15:14 +01:00
Alexey Milovidov
2f315e0eb5
Style check for abbreviations
2024-02-17 02:14:15 +01:00
Alexander Tokmakov
31479649fe
Merge pull request #59908 from azat/rmt-uuid-macro
...
[RFC] Allow uuid in replica_path if CREATE TABLE explicitly has it
2024-02-16 17:31:59 +01:00
Alexey Milovidov
885e8dad63
Merge pull request #60042 from Algunenano/format_not
...
Fix formatting of NOT with single literals
2024-02-16 01:28:45 +01:00
Alexey Milovidov
3470fc70b2
Merge branch 'master' into check-stack-size-in-parser
2024-02-15 23:45:33 +01:00
Raúl Marín
a249840421
Fix formatting of NOT with single literals
2024-02-15 21:44:22 +01:00
Robert Schulze
058461e786
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-15 16:21:16 +00:00
Robert Schulze
1edf3b2254
Replace ORDER BY ALL by ORDER BY * to get rid of ambiguities
2024-02-15 16:19:56 +00:00
Alexey Milovidov
accc63500d
Fix broken lambdas formatting
2024-02-15 06:54:18 +01:00
Azat Khuzhin
58e5d7876b
Allow uuid in replica_path if CREATE TABLE explicitly has it
...
Right now the query with {uuid} macro without ON CLUSTER fails:
CREATE TABLE x UUID 'aaaaaaaa-1111-2222-3333-aaaaaaaaaaaa' (key Int) ENGINE = ReplicatedMergeTree('/tables/{database}/{uuid}', 'r1') ORDER BY tuple();
There is a workaround right now to use ATTACH instead of CREATE, but
ATTACH is not CREATE.
CREATE still useful for proper RESTORE without ON CLUSTER.
So this patch allows this syntax, but only if UUID had been explicitly
passed in the query. This looks safe.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-13 08:01:09 +01:00
János Benjamin Antal
310b0773b2
Fix include used for debugging
2024-02-12 17:25:17 +00:00
János Benjamin Antal
69273b4645
Fix parsing of partition expressions surrounded by parens
2024-02-12 17:10:10 +00:00
Michael Kolupaev
2dfd310cf2
Hide URL/S3 'headers' argument in SHOW CREATE
2024-02-09 03:31:30 +00:00
Alexey Milovidov
aa004cabff
Fix tests
2024-02-09 02:00:05 +01:00
Alexey Milovidov
497d78703b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into check-stack-size-in-parser
2024-02-09 01:58:34 +01:00
Alexey Milovidov
7016e1d397
Maybe better
2024-02-07 15:43:58 +01:00
Alexey Milovidov
5b791ddec8
Check stack size in Parser
2024-02-07 04:23:43 +01:00
Alexey Milovidov
88b6b38a74
Check stack size in Parser
2024-02-07 04:21:57 +01:00
Alexander Tokmakov
77e4b0c8d9
Revert "Merge pull request #59122 from arthurpassos/bring_back_attach_partition_pr"
...
This reverts commit ac90637170
, reversing
changes made to fe2b5cde05
.
2024-02-07 02:52:43 +01:00
serxa
1d31ac2a0c
add FORGET PARTITION
query to remove old parition nodes from ZooKeeper
2024-02-02 10:03:31 +00:00
János Benjamin Antal
e8c9500981
Update src/Parsers/ASTAlterQuery.cpp
...
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2024-02-01 14:43:31 +00:00
János Benjamin Antal
1a4f56a61a
Fix ASTAlterCommand::formatImpl
in case of column specific settings modifications
2024-02-01 14:43:31 +00:00
Yarik Briukhovetskyi
5816424c2b
Merge pull request #59119 from AVMusorin/trailing-comma-tuples
...
Allow trailing commas in types with several items
2024-01-30 16:31:54 +01:00
Alexey Milovidov
ac90637170
Merge pull request #59122 from arthurpassos/bring_back_attach_partition_pr
...
Revert revert attach partition PR
2024-01-30 04:02:31 +01:00
Alexey Milovidov
fe2b5cde05
Merge pull request #59338 from vitlibar/support-format-clause-in-backup-query
...
Support the FORMAT clause in BACKUP and RESTORE queries
2024-01-30 04:00:21 +01:00
Arthur Passos
15d04d0a78
Merge branch 'master' into bring_back_attach_partition_pr
2024-01-29 15:16:49 -03:00
Vitaly Baranov
1f446f78b5
Fix parameter's name.
2024-01-29 16:24:16 +01:00
Vitaly Baranov
9fa76bea7e
Support FORMAT clause in BACKUP/RESTORE query.
2024-01-29 14:19:16 +01:00
Yarik Briukhovetskyi
9f2093df75
Restart CI
2024-01-29 12:54:29 +01:00
Aleksandr Musorin
e6352234c3
Added parsing trailing symbols for type expressions
...
```sql
SELECT (1, 'foo')::Tuple(a Int, b String,);
SELECT (1, 'foo')::Tuple(Int, String,);
SELECT (1, (2,'foo'))::Tuple(Int, Tuple(Int, String,),);
````
fix
2024-01-26 17:56:14 +01:00
avogar
5833641fa5
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-data-type
2024-01-26 16:54:02 +00:00
Arthur Passos
ce6877cbb6
Merge branch 'ClickHouse:master' into bring_back_attach_partition_pr
2024-01-26 10:57:11 -03:00