Alexander Tokmakov
eb71dd4c78
Merge pull request #37547 from ClickHouse/followup_37398
...
Follow-up to #37398
2022-05-26 20:29:41 +03:00
Alexander Tokmakov
e8f33fb0d9
fix flaky tests
2022-05-26 14:17:05 +02:00
Maksim Kita
3a92e61827
Merge pull request #37148 from kitaisreal/dictionary-get-descendants-performance-improvement
...
Dictionary getDescendants performance improvement
2022-05-26 12:29:17 +02:00
Alexander Tokmakov
4618429201
fixes
2022-05-24 18:53:52 +02:00
Alexander Tokmakov
dbde63d275
fixes
2022-05-24 14:24:03 +02:00
Igor Nikonov
838a6c6f61
Column declaration: [NOT] NULL right after type
...
+ fixed: data_type_default_nullable=true, it didn't make columns nullable
if the column declaration contains default expression w/o type
Issue #37229
2022-05-23 22:03:45 +00:00
Alexander Tokmakov
d0f998fb88
Merge branch 'master' into fix_trash
2022-05-23 21:25:56 +02:00
Maksim Kita
1142e05683
Dictionaries allow to specify bidirectional for hierarhical attribute
2022-05-23 12:42:00 +02:00
Vxider
fcd317a642
update windowview create syntax
2022-05-22 10:18:34 +00:00
Yakov Olkhovskiy
ce1df15e1c
Merge pull request #37377 from ClickHouse/sha256_hash-with-salt
...
Allow SALT in CREATE USER user1 IDENTIFIED WITH sha256_hash
2022-05-21 14:36:22 -04:00
Alexander Tokmakov
c48410b574
fix trash in my code
2022-05-21 02:05:02 +02:00
Yakov Olkhovskiy
6e3f741a25
allow SALT only for SHA256_HASH
2022-05-20 17:21:04 -04:00
Yakov Olkhovskiy
1fdcb9b727
test added
2022-05-20 08:41:27 -04:00
Yakov Olkhovskiy
962b72ebf0
unused argument removed
2022-05-20 08:10:29 -04:00
Yakov Olkhovskiy
a8b2f12111
allow SALT in sha256_hash
2022-05-19 21:55:41 -04:00
Dmitry Novik
b3ccf96c81
Merge remote-tracking branch 'origin/master' into grouping-function
2022-05-19 17:58:33 +00:00
Dmitry Novik
d4c66f4a48
Code cleanup & fix GROUPING() with TOTALS
2022-05-19 16:36:51 +00:00
Vxider
4290cbc818
update create windowview syntax
2022-05-19 13:05:05 +00:00
Vxider
f6cc73235b
Merged with master
2022-05-19 13:03:45 +00:00
Kseniia Sumarokova
24d0899cb7
Merge pull request #36945 from Vxider/wv-populate
...
POPULATE support for WindowView
2022-05-19 13:47:52 +02:00
Alexander Tokmakov
9772924d06
Merge branch 'master' into fix_trash
2022-05-18 17:27:54 +02:00
Vladimir C
1779fb08ed
Merge pull request #36271 from yuuch/support_collation_in_create_query
2022-05-18 12:43:49 +02:00
Alexander Tokmakov
5590adeffa
fix more trash
2022-05-17 23:04:24 +02:00
Alexander Tokmakov
dea39d8175
fix some trash
2022-05-17 18:22:52 +02:00
Vxider
f74c934a61
Merged with master
2022-05-17 02:53:59 +00:00
mergify[bot]
0d0fc23170
Merge branch 'master' into wv-engine
2022-05-17 02:24:18 +00:00
Vitaly Baranov
72bff5242a
Merge pull request #37168 from vitlibar/backup-improvements-5
...
Backups Improvements 5
2022-05-16 21:25:54 +02:00
Robert Schulze
ed7df7cabd
Merge pull request #36960 from ClickHouse/clangtidies
...
Enable clangtidies
2022-05-16 14:22:50 +02:00
alesapin
1829256ae2
Merge pull request #37178 from ClickHouse/ignore_auto_increment_in_create_table_2
...
Ignore AUTO_INCREMENT in CREATE TABLE to simplify migration from MySQL
2022-05-16 13:29:22 +02:00
Robert Schulze
e3cfec5b09
Merge remote-tracking branch 'origin/master' into clangtidies
2022-05-16 10:12:50 +02:00
Vxider
f459dd5aba
change windowview engine behaviour
2022-05-14 16:46:49 +00:00
Dmitry Novik
6fc7dfea80
Support ordinary GROUP BY
2022-05-13 23:04:12 +00:00
Dmitry Novik
5128afb0b7
Do not prepend whitespace in grouping sets
2022-05-13 16:14:41 +00:00
Dmitry Novik
fb5766287c
Cleanup GROUPING SETS formating
2022-05-13 16:14:41 +00:00
Igor Nikonov
8d5cabc8f7
Fix style warnings and review comments
2022-05-13 11:27:17 +00:00
Igor Nikonov
f423e9bf40
Ignore AUTO_INCREMENT in CREATE TABLE to simplify migration from MySQL
...
Issue #35893
2022-05-13 09:22:52 +00:00
Dmitry Novik
c5b40a9c91
WIP on GROUPING function
2022-05-12 16:40:26 +00:00
alesapin
e7296a2b28
Merge pull request #36825 from kssenii/cache-fix-1
...
Removed forceful drop cache command, fix detached status state
2022-05-12 17:18:21 +02:00
mergify[bot]
7ffad69019
Merge branch 'master' into wv-populate
2022-05-12 11:52:04 +00:00
Vxider
98f9cd4a51
fix windowview populate
2022-05-12 10:34:44 +08:00
kssenii
5385a4da8a
Fix review comments
2022-05-11 10:45:20 +02:00
kssenii
18dd74be0c
Remove unneede changes
2022-05-11 10:26:30 +02:00
Vladimir C
1f78fe032a
Add string_utils to clickhouse_parsers
2022-05-10 13:14:00 +02:00
mergify[bot]
55a6d22ad3
Merge branch 'master' into grouping-sets-fix
2022-05-09 14:02:10 +00:00
Robert Schulze
1b81bb49b4
Enable clang-tidy modernize-deprecated-headers & hicpp-deprecated-headers
...
Official docs:
Some headers from C library were deprecated in C++ and are no longer
welcome in C++ codebases. Some have no effect in C++. For more details
refer to the C++ 14 Standard [depr.c.headers] section. This check
replaces C standard library headers with their C++ alternatives and
removes redundant ones.
2022-05-09 08:23:33 +02:00
Vitaly Baranov
1b2eb4fe27
Use more clear syntax for BACKUP/RESTORE.
2022-05-08 10:37:02 +02:00
Alexander Tokmakov
c806869040
fix sync database replica
2022-05-06 18:37:20 +02:00
Dmitry Novik
4cc26aa38b
Merge remote-tracking branch 'origin/master' into grouping-sets-fix
...
And fix execution of the query with only one grouping set
2022-05-05 17:14:52 +00:00
Vxider
9eea003d69
Merged with master
2022-05-06 00:12:17 +08:00
Vxider
a7dc1f48e5
populate support for windowview
2022-05-05 23:31:15 +08: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
Vladimir C
1dd4562bfa
Update src/Parsers/ExpressionElementParsers.cpp
2022-05-03 12:15:28 +02: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
Vladimir C
f6f58f7609
Check only suffix in ParserCollation
2022-04-29 12:24:27 +02: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
yuuch
0d9303acc0
fix style check
2022-04-23 00:41:14 +08:00
yuuch
79a4fb376f
fix some bugs while parsing the collation
2022-04-22 23:46:03 +08:00
Anton Popov
5b5dd4fa46
Merge pull request #36423 from CurtizJ/return-back-36126
...
Return back #36126
2022-04-22 14:27:57 +02:00
yuuch
d126de6dda
Apply suggestions from code review
...
Co-authored-by: Vladimir C <vdimir@clickhouse.com>
2022-04-22 20:00:12 +08: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