Commit Graph

1517 Commits

Author SHA1 Message Date
Vitaly Baranov
1b2eb4fe27 Use more clear syntax for BACKUP/RESTORE. 2022-05-08 10:37:02 +02:00
Yakov Olkhovskiy
75fc471cfc
Merge pull request #36542 from vdimir/literal_drop_const_issue36279
ASTLiteral clone only value
2022-05-05 09:39:00 -04:00
Vitaly Baranov
202dd864ed Fix compilation. 2022-05-03 18:34:29 +02:00
Vitaly Baranov
828f45f078 Add new restore setting 'allow_non_empty_tables'. 2022-05-03 16:18:45 +02:00
vdimir
7f24ae89d1
ASTLiteral clone all except unique_column_name 2022-05-03 10:18:18 +00:00
vdimir
a7fa253ccf
ASTLiteral clone only value 2022-05-03 10:18:18 +00:00
Vitaly Baranov
2c754f44fc Make calculation of shard_num & replica_num not dependant on match of the cluster's definitions on nodes. 2022-05-03 11:01:44 +02:00
Vitaly Baranov
bddec55d35 Added ASTBackupQuery::setDatabase(). 2022-05-03 11:01:44 +02:00
Nikita Mikhaylov
93a65463d0
Added SYSTEM SYNC DATABASE query (#35944) 2022-05-01 15:40:18 +02:00
Robert Schulze
89aa9ae00f
Fixed clang-tidy check "bugprone-branch-clone"
The check is currently *not* part of .clang-tidy. It complains about:
(1) "switch has multiple consecutive identical branches"
(2) "repeated branch in conditional chain"

About (1): Lots of findings in switches were about redundant
"[[fallthrough]]" in places where the compiler would not warn anyways. I
have cleaned these up.

About (2): In if-else_if-else chains, fixing the warning would usually
mean concatenating multiple if-conditions. As this would reduce
readability in most cases, I did not fix these places.

Because of (2), I also refrained from adding "bugprone-branch-clone" to
.clang-tidy.
2022-04-30 19:40:28 +02:00
Alexey Milovidov
1ddb04b992
Merge pull request #36715 from amosbird/refactorbase
Reorganize source files so that base won't depend on Common
2022-04-30 09:40:58 +03:00
mergify[bot]
288b68c86e
Merge branch 'master' into followup_password_hash_salt 2022-04-29 08:17:05 +00:00
Amos Bird
4a5e4274f0
base should not depend on Common 2022-04-29 10:26:35 +08:00
Yakov Olkhovskiy
7001489095
Merge pull request #36633 from ucasfl/fix-crash
Fix format crash when default expression follow EPHEMERAL not literal
2022-04-28 12:38:43 -04:00
Kseniia Sumarokova
d5a7177bb1
Merge pull request #36658 from kssenii/follow-up
Fix formatting in drop cache system query
2022-04-28 13:12:16 +02:00
Vitaly Baranov
641a5f5e35
Merge pull request #36198 from vitlibar/backup-improvements-3
Backup for replicated tables and other improvements
2022-04-28 09:23:53 +02:00
Vitaly Baranov
a8e924caf6 Make BACKUP & RESTORE synchronous by default. 2022-04-26 18:45:39 +02:00
Alexander Tokmakov
32f4565def
Merge pull request #36642 from ClickHouse/fix_settings_in_create_query
Fix parsing of settings in create query
2022-04-26 15:22:12 +03:00
kssenii
c502a14404 Fix 2022-04-26 11:26:20 +02:00
Kseniia Sumarokova
81db081b88
Merge pull request #36639 from kssenii/better-drop-cache
Improve drop cache query
2022-04-26 11:25:46 +02:00
Vitaly Baranov
1c0b731ea6 Fix compilation. 2022-04-26 10:13:08 +02:00
Vitaly Baranov
78bcb96098 Rename backup & restore setting 'async' -> 'sync', and make backup & restore async by default. 2022-04-26 09:51:19 +02:00
fenglv
3086d0deda remove unneeded include file 2022-04-26 06:42:51 +00:00
fenglv
7150dc04ce fix 2022-04-26 05:18:14 +00:00
Vitaly Baranov
000b184691 Fix style & compilation. 2022-04-25 23:05:35 +02:00
kssenii
35b8d302da Fix 2022-04-25 21:57:13 +02:00
Alexander Tokmakov
cfcf8dbfbe fix backward incompatibility 2022-04-25 21:00:39 +02:00
Kseniia Sumarokova
cf34ae0f67
Update ASTSystemQuery.h 2022-04-25 19:40:28 +02:00
kssenii
a76a35d3ce Better drop cache 2022-04-25 19:20:25 +02:00
fenglv
85f35a6857 Fix format crash when default expression follow EPHEMERAL not literal 2022-04-25 14:57:14 +00:00
Vitaly Baranov
68a020ecea Implement BACKUP/RESTORE ON CLUSTER. 2022-04-25 16:34:33 +02:00
Vitaly Baranov
3477665659 Add shard_index and replica_index to params of getRewrittenASTWithoutOnCluster(). 2022-04-25 16:34:33 +02:00
Yakov Olkhovskiy
579e8105a3
Merge pull request #36468 from ClickHouse/decouple_ParserAttachAccessEntity
Refactoring dependency for ParserAttachAccessEntity
2022-04-25 08:28:17 -04:00
Alexey Milovidov
90297e225c
Merge pull request #36430 from amosbird/fixcolumnmatcher
Fix column matcher and column transformer
2022-04-24 09:11:21 +03:00
Anton Popov
5b5dd4fa46
Merge pull request #36423 from CurtizJ/return-back-36126
Return back #36126
2022-04-22 14:27:57 +02:00
Yakov Olkhovskiy
e6c5ac3b02 print error string 2022-04-22 00:31:23 -04:00
Maksim Kita
bac1f12a2b
Merge pull request #36167 from kitaisreal/special-operators-broken-aliases-fix
Fix broken aliases during parsing of special operators
2022-04-21 22:31:45 +02:00
Maksim Kita
a077751100 Fixed style check 2022-04-21 21:31:50 +02:00
Yakov Olkhovskiy
f966d69791 error processing for RAND_bytes, style issue 2022-04-21 13:07:44 -04:00
Maksim Kita
57444fc7d3
Merge pull request #36444 from rschu1ze/clang-tidy-fixes
Clang tidy fixes
2022-04-21 16:11:27 +02:00
Maksim Kita
be53daf405 Fixed tests 2022-04-21 14:20:10 +02:00
Maksim Kita
01e09ba44e Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
c9a1605b1e Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
fb28791d83 Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
90e3a75874 Fixed tests 2022-04-21 13:47:43 +02:00
Maksim Kita
00ac3231b2 Fix broken aliases during parsing of special operators 2022-04-21 13:47:43 +02:00
Yakov Olkhovskiy
b2d7cb769c dedicated files for ParserAttachAccessEntity 2022-04-20 22:59:12 -04:00
Yakov Olkhovskiy
85df222f15 refactoring ParserAttachAccessEntity 2022-04-20 22:57:44 -04:00
Alexey Milovidov
ec9b86fd03
Merge branch 'master' into fixcolumnmatcher 2022-04-21 02:15:25 +03:00
Larry Luo
33cdeab4cc Removed space. 2022-04-20 11:07:06 -04:00