Alexey Milovidov
a3f1411679
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-inconsistent-formatting
2024-02-26 19:01:11 +01:00
Amos Bird
41388a7a53
Fix
...
(cherry picked from commit 1d22dd8f0d809f1cc6593d4164098f1b5463cc77)
2024-02-26 17:52:19 +00:00
Alexander Tokmakov
07e22dbe50
Merge branch 'master' into ddl_none_only_active
2024-02-26 17:53:11 +01:00
vdimir
5a9026f39b
Analyzer: compute ALIAS columns right after reading
2024-02-26 16:15:05 +00:00
Raúl Marín
eb0af49fd0
Merge remote-tracking branch 'blessed/master' into max_threads_sanity
2024-02-26 16:33:43 +01:00
Nikolai Kochetov
ce7cde64ec
Small fix
2024-02-26 15:33:25 +00:00
Nikolai Kochetov
ed78c18eda
Add a setting query_plan_optimize_prewhere. Use AST-based PREWHERE optimization when it is disabled.
2024-02-26 15:19:27 +00:00
Nikolai Kochetov
2b9889fb84
Merge pull request #60082 from amosbird/non-trivial-count-optimization
...
Refactor prewhere and primary key optimization
2024-02-26 16:17:24 +01:00
Dmitry Novik
42b91201a5
Merge remote-tracking branch 'origin/master' into analyzer-refactor-constant-name
2024-02-26 15:11:57 +00:00
avogar
3c881b63d6
Merge branch 'master' of github.com:ClickHouse/ClickHouse into validate-nested-types-under-a-setting
2024-02-26 14:45:57 +00:00
Nikolai Kochetov
ef8dab52c6
Merge pull request #57767 from jsc0218/DictShortCircuit
...
Dict Short Circuit
2024-02-26 15:16:15 +01:00
Raúl Marín
f885423a4a
Cleanup and more tests
2024-02-26 15:09:05 +01:00
Raúl Marín
2fa04bb37c
Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_2
2024-02-26 14:31:20 +01:00
Yong Wang
795c1a98dc
Fix segmentation fault in KQL parser when the input query exceeds the max_query_size
( #59626 )
...
* Fix_kql_issue_found_by_wingfuzz
This commit fix the issues:
https://github.com/ClickHouse/ClickHouse/issues/59036
https://github.com/ClickHouse/ClickHouse/issues/59037
both issues are same reason, the input query exceed the max_query_size,
so the condition isEnd() of token is not meet and cause the assertion failure
* fix_kql_issue_found_by_wingfuzz: use isValid instead of TokenType::EndOfStream
* fix_kql_issue_found_by_wingfuzz: make functional test result consist
* fix_kql_issue_found_by_wingfuzz: update test case for makeseries
* fix_kql_issue_found_by_wingfuzz: disable makeseries
* fix_kql_issue_found_by_wingfuzz:
use isvalid() function to replace isEnd() function of TokenIterator to check the end of stream
* fix_kql_issue_found_by_wingfuzz: add test case for max_query_size
* fix_kql_issue_found_by_wingfuzz: fix AST structure
* fix_kql_issue_found_by_wingfuzz: make sure the max query size test is in the dialect of kusto
* fix_kql_issue_found_by_wingfuzz : restore max query size after test
* fix_kql_issue_found_by_wingfuzz : fix typo
---------
Co-authored-by: János Benjamin Antal <benjamin.antal@clickhouse.com>
2024-02-26 13:31:47 +01:00
Yarik Briukhovetskyi
7d413bef18
Merge branch 'ClickHouse:master' into fix_datetime64_scale_conversion
2024-02-26 12:28:36 +01:00
Robert Schulze
1e40b63cb1
Merge remote-tracking branch 'ClickHouse/master' into dist/config-settings
2024-02-26 11:15:51 +00:00
Raúl Marín
f84209be2f
Merge remote-tracking branch 'blessed/master' into max_threads_sanity
2024-02-26 11:56:29 +01:00
Robert Schulze
5c967c44de
Merge pull request #60248 from ClickHouse/revert-59450-order-by-all-ambiguities
...
Revert "Replace `ORDER BY ALL` by `ORDER BY *`"
2024-02-26 10:23:41 +01:00
liuneng
757b2f3369
fix style
2024-02-26 16:49:15 +08:00
liuneng
a0f108ec3f
fix bug
2024-02-26 16:22:47 +08:00
liuneng
94f78ac44b
use template class
2024-02-26 15:34:56 +08:00
kssenii
18741f122e
Move a setting to server setting
2024-02-26 12:45:24 +08:00
liuneng
2279885c3e
fix clangtidy error
2024-02-26 09:51:21 +08:00
liuneng
22a33884c3
fix bug
2024-02-26 09:51:21 +08:00
liuneng
ce3f95f717
fix style
2024-02-26 09:51:21 +08:00
liuneng
b0943ab3e8
add lazyAddedColumns
2024-02-26 09:51:21 +08:00
liuneng
3a2c9a8793
update
2024-02-26 09:51:21 +08:00
liuneng
5c42f2c041
optimize default value
2024-02-26 09:51:21 +08:00
liuneng
18eb75f4d2
lazy build join output
2024-02-26 09:51:21 +08:00
Alexey Milovidov
979cd2937b
Fix inconsistent formatting of SET param_...
2024-02-26 02:11:51 +01:00
Alexey Milovidov
10e59c2e01
Remove ALTER LIVE VIEW
2024-02-26 00:01:34 +01:00
Alexey Milovidov
d097da1223
Remove unused method
2024-02-25 22:40:03 +01:00
Amos Bird
534da3f40f
Fix more tests
2024-02-26 02:31:59 +08:00
Amos Bird
5551a9073b
Better
2024-02-26 02:31:59 +08:00
Amos Bird
207d36d7c1
Make it work
2024-02-26 02:31:58 +08:00
Amos Bird
6137914604
Fix most tests
2024-02-26 02:31:58 +08:00
Amos Bird
b40a412086
Fix
2024-02-26 02:31:57 +08:00
Amos Bird
8a1e23dcc4
Fix more tests
2024-02-26 02:31:57 +08:00
Amos Bird
7435568a0d
Fix tests
2024-02-26 02:31:57 +08:00
Amos Bird
c5e073320c
Unify prewhere optimization
2024-02-26 02:31:56 +08:00
Amos Bird
07a0adceb9
Only use query_info.filter_actions_dag for key analysis
2024-02-26 02:31:55 +08:00
Alexey Milovidov
2eb4d25126
Remove ALTER LIVE VIEW
2024-02-23 22:56:18 +01:00
avogar
8fa75a21c5
Don't allow suspicious variant types by default, add notes in documentation
2024-02-23 20:48:38 +00:00
avogar
39ad054e94
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements
2024-02-23 18:59:34 +00:00
Raúl Marín
d507884a1d
Force reanalysis if parallel replicas changed
2024-02-23 17:59:25 +01:00
Alexey Milovidov
da2ae34c1d
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-inconsistent-formatting
2024-02-23 15:55:03 +01:00
Alexey Milovidov
10ba0801be
Fix inconsistent formatting of SYSTEM SYNC REPLICA LIGHTWEIGHT
2024-02-23 15:45:08 +01:00
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
Alexey Milovidov
9e32d0f5b2
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-inconsistent-formatting
2024-02-23 15:05:46 +01:00
avogar
da8d8fee47
Validate experimental and suspicious types inside nested types under a setting to reflect it in compatibility setting
2024-02-23 13:45:03 +00:00
Dmitry Novik
d13b2a91c1
Fix virtual tables
2024-02-23 13:33:12 +00:00
Raúl Marín
edd5a64890
Better checks
2024-02-23 14:22:05 +01:00
Alexander Tokmakov
32607cc796
Merge pull request #60159 from ClickHouse/fix_create_replica
...
Skip sanity checks on secondary CREATE query
2024-02-23 13:53:47 +01:00
Alexander Tokmakov
011c694117
add none_only_active DDL output mode
2024-02-23 13:10:01 +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
Vitaly Baranov
db119eed49
Merge pull request #60002 from vitlibar/add-config-setting-remove-backup-files-after-failure
...
Add new config setting "backups.remove_backup_files_after_failure"
2024-02-23 12:42:55 +01:00
Raúl Marín
a431608dd4
Add sanity check for some settings
2024-02-23 12:32:17 +01:00
Yarik Briukhovetskyi
ec2c717910
Merge branch 'ClickHouse:master' into fix_datetime64_scale_conversion
2024-02-23 12:24:14 +01:00
zhongyuankai
055efec1a0
minor
2024-02-23 19:03:41 +08:00
zhongyuankai
68239075b7
Query cache does not record the number of queries by default
2024-02-23 18:33:24 +08:00
Raúl Marín
1a4b4d493f
Merge pull request #60228 from Algunenano/parallel_replicas_2
...
Treat 2+ in allow_experimental_parallel_reading_from_replicas as 2
2024-02-23 11:17:23 +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
Alexander Tokmakov
e56748a92c
Merge pull request #60044 from ClickHouse/fix_undead_sessions
...
Ability to detect undead ZooKeeper sessions
2024-02-22 18:13:15 +01:00
Vitaly Baranov
b130726a0c
Merge branch 'master' into add-config-setting-remove-backup-files-after-failure
2024-02-22 18:09:12 +01:00
serxa
9cb1ade3e2
fix db iterator wait
2024-02-22 17:07:47 +00:00
pufit
57306706b3
Add definers for views ( #54901 )
2024-02-22 17:47:50 +01:00
kssenii
f1e95fb78b
Add a way to force read-through cache for merges
2024-02-22 15:40:00 +01:00
Azat Khuzhin
0cb6f205d7
Fix actions execution during preliminary filtering (PK, partition pruning)
...
Previously preliminary filtering works incorrectly if input columns had
been used multiple times, because:
- position initialized only for the first user
- column had been moved, so the second user will get nullptr
And this was the case when it had been required multiple times.
Consider the following example:
select * from data final prewhere indexHint(_partition_id = 'all') or indexHint(_partition_id = 'all')
Actions for this PREWHERE is the following:
(lldb) p actions.__ptr_->dumpActions()
(std::string) $1 = "input:
_partition_id LowCardinality(String)
_partition_id LowCardinality(String)
actions:
INPUT : 0 -> _partition_id LowCardinality(String) : 0
COLUMN Const(String) -> 'all' String : 1
COLUMN Const(String) -> 'UInt8'_String String : 2
INPUT : 1 -> _partition_id LowCardinality(String) : 3
COLUMN Const(String) -> 'all' String : 4
COLUMN Const(String) -> 'UInt8'_String String : 5
FUNCTION equals(_partition_id :: 0, 'all' :: 1) -> equals(_partition_id, 'all') LowCardinality(UInt8) : 6
FUNCTION equals(_partition_id :: 3, 'all' :: 4) -> equals(_partition_id, 'all') LowCardinality(UInt8) : 1
FUNCTION _CAST(equals(_partition_id, 'all') :: 6, 'UInt8'_String :: 2) -> _CAST(equals(_partition_id, 'all'), 'UInt8'_String) UInt8 : 4
FUNCTION _CAST(equals(_partition_id, 'all') :: 1, 'UInt8'_String :: 5) -> _CAST(equals(_partition_id, 'all'), 'UInt8'_String) UInt8 : 2
FUNCTION or(_CAST(equals(_partition_id, 'all'), 'UInt8'_String) :: 4, _CAST(equals(_partition_id, 'all'), 'UInt8'_String) :: 2) -> or(indexHint(), indexHint())"...
It has _partition_id column in input multiple times.
So fix this by adding a flag (`allow_duplicates_in_input`), if set,
columns will be fully initialized.
v2: fix "Position out of bound in Block::erase()"
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-22 15:01:57 +01:00
Azat Khuzhin
be2ec93a3f
Remove commented code in ExpressionActions::execute()
...
This information will be added to the exception anyway.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-02-22 15:01:57 +01:00
Alexander Tokmakov
97ed2c05b0
Merge branch 'master' into fix_undead_sessions
2024-02-22 14:36:36 +01:00
Yarik Briukhovetskyi
ab634a308d
Merge branch 'ClickHouse:master' into fix_datetime64_scale_conversion
2024-02-22 13:22:04 +01:00
Nikolai Kochetov
0e6b55ad35
Merge pull request #60220 from kitaisreal/system-backups-system-backup-log-add-query-id-and-error-stacktrace
...
Tables system.backups and system.backup_log add query_id and error stacktrace
2024-02-22 12:43:52 +01:00
lgbo-ustc
501e05fda1
fixed: improber filter setting
2024-02-22 09:22:28 +08:00
Alexey Milovidov
5b086744f2
Crash
2024-02-21 21:39:58 +01:00
Robert Schulze
7930c2a993
Better!
2024-02-21 20:31:49 +00:00
Alexey Milovidov
2d9fbaa859
Merge with master
2024-02-21 20:37:48 +01:00
Robert Schulze
52afa46e23
Revert "Replace ORDER BY ALL
by ORDER BY *
"
2024-02-21 19:05:20 +01:00
Nikita Mikhaylov
8d47e5ad14
Merge branch 'master' of github.com:ClickHouse/ClickHouse into shabroo/master
2024-02-21 17:56:02 +00:00
Alexey Milovidov
659d30774d
Fix MODIFY REFRESH formatting
2024-02-21 18:37:46 +01:00
Raúl Marín
b71bdbae1b
Treat 2+ in allow_experimental_parallel_reading_from_replicas as 2
2024-02-21 15:33:37 +01:00
Kruglov Pavel
10535132c3
Merge pull request #59385 from Avogar/fix-bad-types-check
...
Fix validating suspicious/experimental types in nested types
2024-02-21 14:38:01 +01:00
avogar
bd2390996e
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-improvements
2024-02-21 13:16:07 +01:00
Maksim Kita
ae91c655a0
Tables system.backups and system.backup_log add query_id and error stacktrace
2024-02-21 14:36:58 +03:00
Antonio Andelic
fee1565780
Revert "Check stack size in Parser"
2024-02-21 11:33:08 +01:00
Kseniia Sumarokova
d601534a4e
Merge pull request #60166 from ClickHouse/fix-s3-queue-system-table-uuid-column
...
Fix system.s3queue_log
2024-02-21 10:52:45 +01:00
Alexey Milovidov
41701ce39d
Fix error
2024-02-21 08:20:29 +01:00
Alexey Milovidov
71c267e0b0
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-inconsistent-formatting
2024-02-21 07:56:51 +01:00
Anton Popov
23f300b581
refactoring of virtual columns
2024-02-21 00:57:35 +00:00
Alexander Tokmakov
45d407034f
Merge branch 'master' into fix_undead_sessions
2024-02-20 22:21:37 +01:00
Alexander Tokmakov
ec0986af0b
skip sanity checks on secondary create query
2024-02-20 21:59:28 +01:00
Yarik Briukhovetskyi
c722ebfaa0
Merge branch 'ClickHouse:master' into fix_datetime64_scale_conversion
2024-02-20 20:22:56 +01:00
avogar
122dc6769d
Fixes and improvements for Variant type
2024-02-20 18:58:06 +00:00
Robert Schulze
914b19aade
Merge pull request #59450 from rschu1ze/order-by-all-ambiguities
...
Replace `ORDER BY ALL` by `ORDER BY *`
2024-02-20 18:16:22 +01:00
Robert Schulze
a1a45ed881
Merge pull request #60160 from rschu1ze/bool-cast
...
Allow casting of bools in string representation to to true bools
2024-02-20 17:19:02 +01:00
Sergei Trifonov
d2aebe2c9a
Merge branch 'master' into alter-table-forget-partition
2024-02-20 13:56:50 +01:00
Alexey Milovidov
15f5e47f44
Fix build
2024-02-20 12:18:45 +01:00
Alexey Milovidov
96598f8553
Fix build
2024-02-20 11:56:17 +01:00
Alexey Milovidov
38ae6968b6
Fix build
2024-02-20 11:45:42 +01:00
kssenii
3dac4c9743
Fix
2024-02-20 11:10:11 +01:00
Robert Schulze
5474f36e75
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-20 10:09:57 +00:00
Alexey Milovidov
5b3890c670
Better check
2024-02-20 11:01:49 +01:00
Alexey Milovidov
0ca6fc69fa
Remove the check back
2024-02-20 09:49:35 +01:00
Alexey Milovidov
b2285ce6e5
Remove extensively aggressive check
2024-02-20 06:52:07 +01:00
Robert Schulze
6b6630c5a7
Allow casting of bools in string representation to to true bools
...
Fixes #57256
2024-02-19 23:03:48 +00:00
Robert Schulze
6f6e74ad8b
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-19 15:19:13 +00:00
Robert Schulze
8f5a4d92a1
Fix style
2024-02-19 15:19:04 +00:00
Vitaly Baranov
f10a8868e1
Merge pull request #60097 from vitlibar/move-thread-pool-callback-runner-to-common
...
Move threadPoolCallbackRunner to the "Common" folder
2024-02-19 14:10:36 +01:00
Dmitry Novik
11970ddf82
Merge branch 'master' into analyzer-fix-test_select_table_name_from_merge_over_distributed
2024-02-19 14:07:58 +01:00
Yarik Briukhovetskyi
4616ecd7fb
Update convertFieldToType.cpp
2024-02-19 13:10:00 +01:00
Yarik Briukhovetskyi
e14c1b45a1
style
2024-02-19 12:47:10 +01:00
Yarik Briukhovetskyi
4c9bd4b58a
review
2024-02-19 11:32:44 +00:00
Igor Nikonov
f775e1a7c6
Merge pull request #59910 from ClickHouse/query-log-on-insert-exception-over-http
...
Fix: absence of closing record in query_log for failed insert over http
2024-02-19 12:27:44 +01:00
Alexey Milovidov
4590d3f81a
Miscellaneous
2024-02-19 05:10:39 +01:00
Alexey Milovidov
fa1ca348a4
Miscellaneous
2024-02-19 03:19:21 +01:00
Alexey Milovidov
6fd563df52
Miscellaneous
2024-02-19 02:58:51 +01:00
Alexey Milovidov
6294e0ee84
Merge branch 'better-check-for-inconsistent-formatting' into fix-inconsistent-formatting-of-explain-in-subqueries
2024-02-18 10:58:40 +01:00
Alexey Milovidov
c2555dfb27
Better check for inconsistent formatting
2024-02-18 10:58:10 +01:00
Alexey Milovidov
232fe0dd1b
Fix inconsistent formatting of SELECT ... FROM (EXPLAIN ...)
2024-02-18 05:38:34 +01:00
Vitaly Baranov
3323d5ce81
Move threadPoolCallbackRunner to the "Common" folder.
2024-02-17 21:59:51 +01:00
Alexey Milovidov
6b32622c7d
Merge pull request #60080 from kitaisreal/temporary-table-already-exists-exception-message-fix
...
Temporary table already exists exception message fix
2024-02-17 05:17:39 +01:00
Alexey Milovidov
2f315e0eb5
Style check for abbreviations
2024-02-17 02:14:15 +01:00
Alexey Milovidov
87134acdf0
Merge pull request #60083 from Avogar/max-query-size-ddl-entry
...
Use max_query_size from context in DDLLogEntry instead of hardcoded 4096
2024-02-17 01:49:08 +01:00
avogar
4e6f04ddf1
Address comments
2024-02-16 19:30:16 +00:00
avogar
8c66db0d1c
Use max_query_size from context in DDLLogEntry instead of hardcoded 4096
2024-02-16 19:21:25 +00:00
yariks5s
88f06886ac
enhance tests, review fixes
2024-02-16 18:48:49 +00:00
Maksim Kita
96d9782439
Temporary table already exists exception message fix
2024-02-16 19:16:02 +03:00
Dmitry Novik
a3c34a7cc2
Merge pull request #54211 from ClickHouse/Support_parameterized_view_with_analyzer
...
Refactor parameterized view & add support for new analyzer
2024-02-16 16:13:49 +01:00
Alexander Tokmakov
228a29b93f
fix
2024-02-16 14:05:22 +01:00
Alexey Milovidov
25f2501c7f
Merge pull request #60013 from ClickHouse/verify-parser-on-server-side
...
Verify formatting consistency on the server-side
2024-02-16 13:48:10 +01:00
Igor Nikonov
118263d8e8
Merge remote-tracking branch 'origin/master' into query-log-on-insert-exception-over-http
2024-02-16 12:40:10 +00:00
Alexey Milovidov
00c28d97ed
Merge branch 'master' into verify-parser-on-server-side
2024-02-16 01:29:08 +01:00
Alexey Milovidov
15683ae6a0
Revert wrong modification
2024-02-15 22:58:07 +01:00
Alexander Tokmakov
22c97be2a4
ability to detect undead ZooKeeper sessions
2024-02-15 22:17:31 +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
Dmitry Novik
a11b9553ca
Fix implementation in new analyzer
2024-02-15 17:16:27 +01:00
Nikita Mikhaylov
3c3d7e52b0
Better
2024-02-15 13:52:30 +00:00
avogar
efa823400b
Add IDataType::forEachChild and use it in nested types validation
2024-02-15 13:19:02 +00:00
Raúl Marín
5baae9326c
Fix optimize_uniq_to_count removing the column alias
2024-02-15 14:10:55 +01:00
Igor Nikonov
1464830791
Merge remote-tracking branch 'origin/master' into query-log-on-insert-exception-over-http
2024-02-15 12:56:32 +00:00
Igor Nikonov
c580cdb96e
Fix review comment
2024-02-15 12:55:43 +00:00
avogar
109720d162
Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-bad-types-check
2024-02-15 12:10:49 +00:00
Alexey Milovidov
a86d31a005
Merge pull request #59998 from ClickHouse/revert-59699-disable_async_inserts_for_dependent_mv_dedup
...
Revert "Insert synchronously if dependent MV deduplication is enabled"
2024-02-15 07:52:13 +01:00
Alexey Milovidov
0258aba5c0
Verify formatting consistency on the server-side
2024-02-15 07:49:13 +01:00
Alexey Milovidov
47d8248b9d
Merge pull request #60005 from ClickHouse/non-significant-changes-3
...
Fix obviously wrong (but non significant) error in dictionaries
2024-02-15 05:59:07 +01:00
Alexey Milovidov
0b58f16938
Merge pull request #59964 from ClickHouse/cleanups
...
Cleanups
2024-02-15 02:59:54 +01:00
Alexey Milovidov
5e5528a890
Merge pull request #59972 from jrdi/fix-max-num-to-warn
...
Fix max num to warn message
2024-02-15 02:59:29 +01:00
Alexey Milovidov
46fb01c4f6
Fix trash
2024-02-15 02:31:46 +01:00
yariks5s
1cbfaf6f0d
init
2024-02-14 23:06:04 +00:00
Vitaly Baranov
5591d74076
Add new config setting "backups.remove_backup_files_after_failure".
2024-02-14 23:19:21 +01:00
Julia Kartseva
b1b58ef9a3
Revert "Insert synchronously if dependent MV deduplication is enabled"
2024-02-14 12:54:42 -08:00
Nikita Taranov
4e5cfd11d0
upd comments
2024-02-14 19:53:27 +01:00
Nikolai Kochetov
9c626f9c36
Merge pull request #59899 from ClickHouse/refactor-squashing-for-inserts
...
Refactor Squashing for inserts.
2024-02-14 19:29:11 +01:00
Raúl Marín
11519f949b
Merge pull request #59731 from kitaisreal/asof-join-try-sort-with-radix-sort
...
ASOF JOIN use trySort with RadixSort
2024-02-14 15:54:22 +01:00
Dmitry Novik
617e73ce28
Merge remote-tracking branch 'origin/master' into analyzer-fix-test_select_table_name_from_merge_over_distributed
2024-02-14 13:32:14 +00:00
Igor Nikonov
fd5b572225
Fix
2024-02-14 13:00:22 +00:00
Nikolai Kochetov
3d86e87f7f
Fixing tests.
2024-02-14 12:28:54 +00:00
Jordi Villar
83a184d928
Fix max num to warn message
2024-02-14 10:11:21 +01:00
Alexey Milovidov
2b4949bd18
Cleanups
2024-02-14 00:21:13 +01:00
Alexey Milovidov
b9d3ae3b0a
Merge pull request #58195 from Unalian/feat-58127
...
Add InitialQuery event
2024-02-13 23:51:03 +01:00
Igor Nikonov
3d91b12a2f
Fix typo
2024-02-13 22:34:10 +00:00
Igor Nikonov
e9dcc751ac
Merge remote-tracking branch 'origin/master' into query-log-on-insert-exception-over-http
2024-02-13 22:08:44 +00:00
Igor Nikonov
a27639a7f9
Fix: call first exception callback on exception
...
it'll update query_log
2024-02-13 22:06:00 +00:00
Kruglov Pavel
48a3b8e675
Merge pull request #58292 from ucasfl/negtive-position
...
Resubmit: Support negtive position arguments
2024-02-13 18:35:28 +01:00
Nikolai Kochetov
134837d6fb
Fixing tests.
2024-02-13 16:16:53 +00:00
Nikolai Kochetov
253abd1643
Refactor Squashing for inserts.
2024-02-13 16:16:53 +00:00
Maksim Kita
4577975923
Fixed code review issues
2024-02-13 15:41:17 +03:00
Maksim Kita
bfa7938df9
Fixed tests
2024-02-13 15:41:17 +03:00
Maksim Kita
a359ceecb5
ASOF JOIN use trySort with RadixSort
2024-02-13 15:41:17 +03:00
Smita Kulkarni
3526d7982c
Merge branch 'master' into Support_parameterized_view_with_analyzer
2024-02-13 13:08:35 +01:00
Nikita Taranov
fe173075e7
fix tests
2024-02-12 23:55:03 +01:00
Igor Nikonov
d1167d0b04
Fix: corrupted source + fail point
2024-02-12 20:56:13 +00:00
Igor Nikonov
eb44faf867
Test to reproduce absence of closing record in query_log
2024-02-12 20:41:46 +00:00
Nikita Taranov
91a38e73b4
impl
2024-02-12 19:36:12 +01:00
jsc0218
c2b2a7f903
Merge branch 'ClickHouse:master' into DictShortCircuit
2024-02-12 12:48:08 -05:00
Nikolai Kochetov
fd2ee19f65
Follow up for #58554 . Cleanup.
2024-02-12 13:37:25 +00:00
Nikolai Kochetov
09d3b3c0d0
Merge pull request #58554 from ClickHouse/try-to-always-push-down-prewhere-from-query-plan
...
Simplify optimize-push-to-prewhere from query plan
2024-02-12 12:52:39 +01:00
Igor Nikonov
cb812d84cf
Fix: check if std::function is set before calling it
2024-02-11 22:31:33 +00:00
Alexey Milovidov
c36397100b
Merge pull request #59662 from Algunenano/shard_query_start_time
...
Fix query start time on non initial queries
2024-02-10 03:09:06 +01:00
Nikita Mikhaylov
ab019e88d9
Better
2024-02-09 23:45:19 +01:00
Nikita Mikhaylov
d726f28b6c
Better
2024-02-09 23:25:02 +01:00
Nikita Mikhaylov
64596c6b3b
Merge branch 'master' of github.com:ClickHouse/ClickHouse into shabroo/master
2024-02-09 16:50:20 +01:00
Dmitry Novik
dd8680018f
Analyzer: WIP on test_merge_table_over_distributed/test.py::test_select_table_name_from_merge_over_distributed
2024-02-09 16:43:20 +01:00
Nikolai Kochetov
862c6cd79c
Merge pull request #57430 from ClickHouse/non-ready-set-ttl
...
Non ready set in TTL WHERE.
2024-02-09 16:31:26 +01:00
Igor Nikonov
effaaceb26
Merge pull request #59501 from ClickHouse/pr-better-replicas-failover-2
...
Parallel replicas: better initial replicas failover (2)
2024-02-09 15:50:56 +01:00
Nikolai Kochetov
1063d9ca50
Use opd prewhere optimizaer for old analyzer.
2024-02-09 14:47:24 +00:00
Michael Kolupaev
359dda5693
Fix DB type check - now it'll refuse to create in Replicated databases ( #59743 )
...
Fix DB type check - now it'll refuse to create in Replicated databases
2024-02-08 22:38:53 -08:00
Julia Kartseva
93bcf0b09c
Merge pull request #59781 from jkartseva/adaptive-async-timeout-better-logging
...
Better logging for adaptive async timeouts
2024-02-08 20:32:42 -08:00
Julia Kartseva
2286184885
Merge pull request #59699 from jkartseva/disable_async_inserts_for_dependent_mv_dedup
...
Insert synchronously if dependent MV deduplication is enabled
2024-02-08 19:23:51 -08:00
Ilya Yatsishin
1c58cafcf3
Merge pull request #59741 from vitlibar/fix-skipping-unused-shards-with_analyzer
...
Fix skipping unused shards with analyzer
2024-02-09 02:44:59 +04:00
Julia Kartseva
e598ad9157
Better logging for adaptive async timeouts
...
Log the adaptive async timeout value after normalization.
2024-02-08 21:42:44 +00:00
Raúl Marín
74dbb06d3f
Merge remote-tracking branch 'blessed/master' into shard_query_start_time
2024-02-08 19:43:20 +01:00
Vitaly Baranov
1b9620001b
Move ColumnArray-specific code out of the ActionsDAG.
2024-02-08 15:31:32 +01:00
Igor Nikonov
3fb30a23d9
Merge remote-tracking branch 'origin/master' into pr-better-replicas-failover-2
2024-02-08 09:09:11 +00:00
Julia Kartseva
ece4febe32
Insert synchronously if dependent MV deduplication is enabled
2024-02-08 08:42:04 +00:00
Alexander Tokmakov
510f90edf8
Merge pull request #59688 from ClickHouse/revert_39507_again
...
Temporarily remove a feature that doesn't work
2024-02-08 02:27:55 +01:00
Vitaly Baranov
12a71375b8
Fix skipping unused shards with analyzer.
2024-02-08 00:44:59 +01:00
Nikolai Kochetov
41d6243170
Fix PreparedSets
2024-02-07 12:43:26 +00:00
Nikolai Kochetov
d1902cdba0
Fix some tests.
2024-02-07 12:36:24 +01:00
Nikolai Kochetov
06d112135e
Simplify prewhere push down from query plan. Try to always use it.
2024-02-07 12:36:20 +01:00
Nikolai Kochetov
a3d1b3f502
Merge branch 'master' into non-ready-set-ttl
2024-02-07 11:29:04 +00: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
Raúl Marín
b43f90fce2
Fix query start time on non initial queries
2024-02-06 19:55:50 +01:00
Raúl Marín
5c68f9cabd
Maintain function alias in RewriteSumFunctionWithSumAndCountVisitor
2024-02-06 19:09:28 +01:00
Igor Nikonov
8748d8c537
UNEXPECTED_CLUSTER error for cluster with more than 1 shard
2024-02-05 15:10:51 +00:00
Robert Schulze
e414384727
Merge remote-tracking branch 'rschu1ze/master' into order-by-all-ambiguities
2024-02-05 13:17:02 +00:00
Igor Nikonov
92a36109c3
Merge remote-tracking branch 'origin/master' into pr-better-replicas-failover-2
2024-02-05 12:07:44 +00:00
Nikita Mikhaylov
6ba35b5459
Make comments for system tables also available in local mode and enforce comments not to be empty ( #59493 )
...
Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2024-02-05 11:17:58 +01:00
Igor Nikonov
df4bc398fb
Merge remote-tracking branch 'origin/master' into fix-messed-up-progress
2024-02-03 10:25:10 +00:00
Julia Kartseva
f41f4e4bd0
Merge pull request #58486 from jkartseva/adjustable-async-timeouts
...
Adjustable asynchronous insert timeouts
2024-02-02 08:53:58 -08:00
Igor Nikonov
74e04e1819
Merge remote-tracking branch 'origin/master' into fix-messed-up-progress
2024-02-02 13:11:07 +00:00
Alexander Gololobov
095648d7bc
Merge pull request #59388 from ClickHouse/system_zookeeper_retries
...
Retry disconnects and expired sessions when reading system.zookeeper
2024-02-02 11:52:15 +01:00
serxa
1d31ac2a0c
add FORGET PARTITION
query to remove old parition nodes from ZooKeeper
2024-02-02 10:03:31 +00:00
Robert Schulze
dd484fc312
Simplify what happens in SELECT all, ... [...] ORDER BY ALL
...
Previously setting `enable_order_by_all` distinguished for ORDER BY ALL
whether we should sort by column 'all' (if given in the SELECT clause)
or by all columns. The actual behavior was not always intuitive.
Now, we throw unconditionally an exception which also simplifies the
handling a bit. Only an edge case is affected and if users really want
to run ORDER BY ALL on a column names 'all', they can alias it.
2024-02-02 09:53:35 +00:00
Julia Kartseva
689c368b76
Adaptive async timeouts: consider queue flush history
...
In addition to the time since the most recent insert,
consider the elapsed time between the two recent queue
flushes when decreasing the timeout or processing an
entry synchronously.
2024-02-01 22:45:10 +00:00
Julia Kartseva
4ef02a1895
Log timeout for entries processed asynchronously
2024-02-01 22:45:09 +00:00
Julia Kartseva
c04e5a4f35
Asynchronous insert queue size and bytes metrics
...
Add AsynchronousInsertQueueSize and AsynchronousInsertQueueBytes
metrics to improve observability of asynchronous inserts.
The metrics do not account for tasks dispatched for immediate processing
(as opposed to, e.g., PendingAsyncInsert).
```
SELECT value
FROM system.metrics
WHERE metric IN ('AsynchronousInsertQueueSize', 'PendingAsyncInsert')
Query id: a711dd83-b48d-4ad5-8031-fa59b21a7c38
┌─value─┐
│ 18 │
│ 23 │
└───────┘
```
```
SELECT value
FROM system.metrics
WHERE metric IN ('AsynchronousInsertQueueSize', 'AsynchronousInsertQueueBytes')
Query id: b35a7ceb-2bb5-46ad-b301-e6cf03508699
┌─value─┐
│ 28 │
│ 1372 │
└───────┘
```
2024-02-01 22:45:09 +00:00
Julia Kartseva
04c8bd1be5
Adaptive asynchronous insert timeouts
...
Implement the algorithm described in #56783 for adaptive asynchronous
insert timeouts.
- The adaptive async insert timeout can take values within
[async_insert_busy_timeout_min_ms, async_insert_busy_timeout_max_ms].
- The initial value is set to async_insert_busy_timeout_min_ms.
- If the elapsed time since the most recent queue insert was
greater than the maximum timeout, process the queue content immediately,
and reduce the timeout.
- If the elapsed time was long enough (longer than a would-be decreased
timeout), decrease the timeout.
- The adaptive timeout is changes exponentially based on the
async_insert_busy_timeout_{increase|decrease}_rate.
Fixes: https://github.com/ClickHouse/ClickHouse/issues/56783
2024-02-01 22:45:06 +00:00
Igor Nikonov
82d7b22144
Parallel replicas: better replicas failover
2024-02-01 21:06:29 +00:00
Kruglov Pavel
d485e36f20
Fix style
2024-02-01 16:57:46 +01:00
jsc0218
4ce770aebf
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-02-01 15:29:27 +00:00
Raúl Marín
18386f7fb9
Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte_fix
2024-02-01 12:04:46 +01:00
Raúl Marín
b93f003b3e
Merge pull request #58216 from bigo-sg/fix_quantiles_gk_state
...
Fix quantilesGK bug
2024-02-01 11:58:02 +01:00
Raúl Marín
a0222c0479
Fix problem detected by UBSAN
2024-02-01 11:46:59 +01:00
Julia Kartseva
bbaa08199a
Introduce polling timeout for asynchronous queue
...
The current timeout for checking updates in the asynchronous queue is
equal to the timeout used for queue entry
(async_insert_busy_timeout_ms).
That means that, in the worst case, an entry spends twice the time of the
asynchronous timeout in the queue.
2024-02-01 08:27:41 +00:00
Vitaly Baranov
a193e01c8f
Merge pull request #54737 from arenadata/ADQM-1150
...
Added maximum sequential login failures to the quota.
2024-01-31 16:06:17 +01:00
Raúl Marín
dad6ea0930
Merge pull request #59239 from Algunenano/parallel_replicas_cte
...
Disable parallel replicas JOIN with CTE (not analyzer)
2024-01-31 14:45:13 +01:00
avogar
aaed835415
Validate variants, use new validation on create queries
2024-01-31 12:59:26 +00:00
Raúl Marín
f875151b97
Merge pull request #59379 from Algunenano/fix_translate_asserts
...
Add sanity checks for function return types
2024-01-31 11:56:11 +01:00
taiyang-li
a89890babe
fix bug of quantileGK
2024-01-31 12:14:04 +08:00
jsc0218
8583192948
refactior short circuit setting
2024-01-30 21:26:43 +00:00
Igor Nikonov
d8a6e53d0b
Use FQDN as host name by default for TCP
...
- instead of display_name setting value
2024-01-30 20:27:30 +00:00
Alexander Gololobov
c348c4e828
Move ZooKeeperRetries.h to Common
2024-01-30 19:02:17 +01:00
avogar
7a1458c922
Fix validating suspicious/experimental types in nested types
2024-01-30 15:21:58 +00:00
Raúl Marín
f79a402e6d
Add sanity checks for function return types
2024-01-30 14:10:20 +01:00
Kseniia Sumarokova
e16aaa8d81
Merge branch 'master' into broken-projections-better-handling
2024-01-30 10:54:22 +01:00
flynn
4f12ca249d
Fix typo
2024-01-30 07:01:07 +00:00
flynn
9858c41849
Merge branch 'master' of github.com:ClickHouse/ClickHouse into negtive-position
2024-01-30 04:03:35 +00:00
flynn
0ded580011
Fix
2024-01-30 04:03:27 +00: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 Gerasimchuck
559de083a3
Implemented failed login attempt counting using quota
2024-01-29 23:20:38 +00:00
Yarik Briukhovetskyi
5ba82eed81
Merge pull request #58841 from yariks5s/dictionary_table_exception_fix
...
Fixing exceptions when table/dictionary already exist
2024-01-29 22:41:06 +01:00
Arthur Passos
15d04d0a78
Merge branch 'master' into bring_back_attach_partition_pr
2024-01-29 15:16:49 -03:00
Raúl Marín
a6de4a21a3
Merge remote-tracking branch 'blessed/master' into parallel_replicas_cte
2024-01-29 13:33:22 +01:00
Kruglov Pavel
6858d2f4ca
Merge pull request #58047 from Avogar/variant-data-type
...
Implement Variant data type
2024-01-29 11:36:08 +01:00
Arthur Passos
0bbfef884c
Merge branch 'ClickHouse:master' into bring_back_attach_partition_pr
2024-01-28 17:43:38 -03:00
avogar
92db86b829
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-data-type
2024-01-28 14:33:49 +00:00
Alexey Milovidov
267b077038
Merge remote-tracking branch 'origin/master' into remove-kql
2024-01-28 14:24:26 +01:00
Alexey Milovidov
e0f0b21e90
Remove KQL
2024-01-28 14:24:13 +01:00
Smita Kulkarni
b7a6dbfbb9
Check engine to avoid possible seg fault
2024-01-27 18:22:37 +01:00
Azat Khuzhin
4248ae509a
Support specifying settings for Distributed engine in config (like for MergeTree)
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-01-27 18:06:16 +01:00
avogar
5833641fa5
Merge branch 'master' of github.com:ClickHouse/ClickHouse into variant-data-type
2024-01-26 16:54:02 +00:00
Kseniia Sumarokova
99653fc778
Merge branch 'master' into broken-projections-better-handling
2024-01-26 16:27:23 +01:00
Arthur Passos
ce6877cbb6
Merge branch 'ClickHouse:master' into bring_back_attach_partition_pr
2024-01-26 10:57:11 -03:00
Raúl Marín
176d8beac9
Disable parallel replicas JOIN with CTE (not analyzer)
2024-01-26 14:36:38 +01:00
Nikolai Kochetov
10d4f1fd87
Merge pull request #59228 from kitaisreal/actions-dag-build-filter-actions-refactoring
...
Actions dag build filter actions refactoring
2024-01-26 11:34:19 +01:00
pufit
92e63bf45c
Load server configs in clickhouse local ( #59231 )
...
Load server configs in clickhouse local
2024-01-25 23:13:31 -05:00
Maksim Kita
5bb734a4bb
ActionsDAG buildFilterActionsDAG refactoring
2024-01-25 18:24:14 +03:00
Kseniia Sumarokova
70514e3d14
Merge pull request #57615 from ClickHouse/filecache-small-optimization
...
fs cache: small optimization
2024-01-25 15:50:09 +01:00
Maksim Kita
2a327107b6
Updated implementation
2024-01-25 14:31:49 +03:00
Kseniia Sumarokova
b13be4fd55
Merge pull request #59175 from ClickHouse/filecache-minor
...
Move some headers
2024-01-25 11:33:57 +01:00
Dmitry Novik
a2d7bcbd5f
Merge pull request #58958 from ClickHouse/analyzer-insert-block
...
Analyzer: fix storage replacement with insertion block
2024-01-25 09:25:50 +01:00
Igor Nikonov
7ae7086a2d
Merge pull request #59153 from ClickHouse/fix-pr-limit-by
...
Fix: LIMIT BY and LIMIT in distributed query
2024-01-25 01:51:52 +01:00
jsc0218
311276252e
Merge remote-tracking branch 'origin/master' into DictShortCircuit
2024-01-24 19:29:56 +00:00
kssenii
9038f0710a
Minor
2024-01-24 18:44:13 +01:00
Kseniia Sumarokova
d674a5ce24
Merge pull request #59168 from ClickHouse/kssenii-patch-9
...
Decrease log level for one log message
2024-01-24 18:39:55 +01:00
Kseniia Sumarokova
235980d52e
Update FileCache.cpp
2024-01-24 17:28:01 +01:00
Dmitry Novik
95e2a3d6da
Merge pull request #58911 from ClickHouse/fix-index-hint-crash
...
Fix crash when indexHint() is used
2024-01-24 17:16:22 +01:00
Kseniia Sumarokova
a4186dc4d3
Decrease log level for one log message
2024-01-24 16:34:29 +01:00
Igor Nikonov
698aef50c2
Fix: LIMIT BY in distriubted query
2024-01-24 12:43:01 +00:00
kssenii
0d7710ee4b
Fix build
2024-01-24 12:39:01 +01:00
kssenii
ed607fbd2c
Merge remote-tracking branch 'origin/master' into filecache-small-optimization
2024-01-24 11:58:44 +01:00
Arthur Passos
e6b17377d0
Merge branch 'master' into bring_back_attach_partition_pr
2024-01-23 14:52:47 -03:00
Nikolai Kochetov
a26f8f5425
Merge pull request #59076 from ClickHouse/revert-59059-revert-58838-allow-parallel-replicas-for-join-with-analyzer
...
Revert "Revert "Allow parallel replicas for JOIN with analyzer [part 1].""
2024-01-23 17:01:19 +01:00
Arthur Passos
799a94081b
Revert "Revert "Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition""
...
This reverts commit a1c83e2f51
.
2024-01-23 11:40:42 -03:00
Robert Schulze
a1c83e2f51
Revert "Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition"
2024-01-23 15:26:04 +01:00
Alexander Gololobov
9a0e5d0aac
Merge pull request #58914 from ClickHouse/ot_spans_in_insert
...
Opentelemetry spans to analyze CPU and S3 bottlenecks on inserts
2024-01-23 13:53:13 +01:00
Nikolai Kochetov
fcbab407b8
Merge branch 'master' into revert-59059-revert-58838-allow-parallel-replicas-for-join-with-analyzer
2024-01-23 12:21:44 +01:00
Dmitry Novik
7a95eb8bd1
Review fixes
2024-01-23 11:59:41 +01:00
Robert Schulze
e23e7e6b73
Merge pull request #53710 from rschu1ze/system-reload-asynchronous-metrics
...
Add statement `SYSTEM RELOAD ASYNCHRONOUS METRICS`
2024-01-23 11:56:25 +01:00
kssenii
b76630c955
Merge remote-tracking branch 'origin/master' into broken-projections-better-handling
2024-01-23 11:34:58 +01:00
Dmitry Novik
6962859e43
Merge pull request #59068 from ClickHouse/check-optimization-setting
...
Followup to 57853
2024-01-23 11:24:31 +01:00
Kseniia Sumarokova
f6ffbb4c0a
Merge pull request #59049 from ClickHouse/fix-data-race-in-factories
...
Fix data race on query_factories_info
2024-01-23 11:22:40 +01:00
Robert Schulze
e67076ea2b
Merge pull request #55201 from canhld94/column_level_compress_block
...
Column-level compression block sizes
2024-01-23 11:22:03 +01:00
Nikita Mikhaylov
bd7024ff9b
Merge pull request #59083 from ClickHouse/fix-startup-failure
...
Fix server shutdown due to exception while loading metadata
2024-01-23 09:48:38 +01:00
Arthur Passos
24b8bbe9fa
Allow to attach partition from table with different partition expression when destination partition expression doesn't re-partition ( #39507 )
...
* temp commit
* temp commit
* draft impl for feedback
* fix weird style changes
* fix weird style changes
* fix weird style changes
* fix weird style changes
* fix weird style changes
* aa
* aa
* Add integ tests and remove partition key restriction
* fix small incosistency in partition id
* style fix
* style fix
* style fix
* use existing DataPartStorageBuilder instead of new one
* Refactor part clone to make it more readable and maintainable
* Add MergeTreeDataPartCloner docs
* define ErrorCodes::BAD_ARGUMENTS
* Rebase
* camel case methods
* address some comments
* yet another rebase?
* Move from integ tests to stateless tests
* address more comments
* add finalize on min_max_idx files
* Add sync option to DistinctPartitionExpCloner
* just a temp test
* revert temp change
* Use echoOn to distinguish test queries
* remove comment
* fix build issue during rebase
* atempt to fix build after rebase
* finally fix build
* clear minmaxidx hyperrectangle before loading it
* Fix error on min_max files deletion where it was being assumed that partition expression contained all columns
* get it to the state it was previously
* add missing include
* getting functional?
* refactoring and renaming
* some more refactoring
* extern bad arguments
* try to fix style
* improvements and docs
* remove duplicate includes
* fix crash
* make tests more stable by ordering
* rebase once again..
* fix
* make ci happy?
* fix rebase issues
* docs
* rebase, but prolly needs to be improved
* refactor out from nasty inheritance to static methods
* fix style
* work around optional
* refactor & integrate some changes
* update column_type
* add tests by dencrane
* set utc
* fix ref file
* fix tests
* use MergeTree instead of SummingMergeTree
* mark MergeTreeDataPart::getBlock as const
* address a few comments
* compute module function name size at compile time
* simplify branching in getPartitionAstFieldsCount
* remove column_indexes argument
* merge getBlock with buildBlock
* add some const specifiers
* small adjustments
* remove no longer needed isNull check
* use std::min and max to update global min max idx
* add some assertions
* forward declare some symbols
* fix grammar
* forward decl
* try to fix build..
* remove IFunction forward decl
* Revert "use std::min and max to update global min max idx"
This reverts commit b2fe79dda7
.
* Revert "remove no longer needed isNull check"
This reverts commit 129db2610f
.
* Revert "Revert "remove no longer needed isNull check""
This reverts commit 9416087dd8
.
* Revert "Revert "use std::min and max to update global min max idx""
This reverts commit 20246d4416
.
* remove some comments
* partial use of MonotonicityCheckMatcher
* ranges
* remove KeyDescriptionMonotonicityChecker
* remove duplication of applyfunction
* move functions to anonymous namespace
* move functions to cpp
* Relax partition compatibility requirements by accepting subset, add tests from partitioned to unpartitioned
* updte reference file
* Support for partition by a, b, c to partition by a, b
* refactoring part 1
* refactoring part 2, use hyperrectangle, still not complete
* refactoring part 3, build hyperrectangle with intersection of source & destination min max columns
* Support attaching to table with partition expression of multiple expressions
* add tests
* rename method
* remove some code duplication
* draft impl for replicatedmergetree, need to dive deeper
* ship ref file
* fix impl for replicatedmergetree..
* forbid attach empty partition replicatedmergetree
* Add replicated merge tree integration tests
* add test missing files
* fix black
* do not check for monotonicity of empty partition
* add empty tests & fix replicated
* remove no longer needed buildBlockWithMinMaxINdexes
* remove column logic in buildHyperrectangle
* simplify implementation by using existing methods
* further simplify implementation
* move all MergeTreeDataPartClone private methods to .cpp file
* decrease decomposition
* use different namespaces
* reduce code duplication
* fix style
* address a few comments
* add chassert to assert arguments size on MonotonicityCheckVisitor
* remove deleteMinMaxFiles method
* remove useless checks from sanitycheck
* add tests for attach partition (not id)
* Remove sanityCheckASTPartition and bring back conditional getPartitionIDFromQuery
* remove empty block comment
* small fixes
* fix formatting
* add missing include
* remove duplicate iuncludes
* trigger ci
* reduce some code duplication
* use updated partition id on replicatedmergetree
* fix build
* fix build
* small refactor
* do not use insert increment on fetch part
* remove duplicate includes
* add one more integ test
* black
* black
* rely on partition exp instead of partition id on replicated part fetch to decide if it is a different partition exp
* add one more integ test
* add order by clause
* fix black
---------
Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2024-01-22 21:00:04 +01:00
serxa
1d6d1182fd
Fix server shutdown due to exception while loading metadata
2024-01-22 19:38:26 +00:00
Robert Schulze
90a0ea36b3
Add statement 'SYSTEM RELOAD ASYNCHRONOUS METRICS'
2024-01-22 17:14:58 +00:00
Robert Schulze
1262945df7
Cosmetics
2024-01-22 16:51:02 +00:00
Nikolai Kochetov
65c5ea31a8
Revert "Revert "Allow parallel replicas for JOIN with analyzer [part 1].""
2024-01-22 17:09:34 +01:00
Dmitry Novik
3d0e915088
Followup to 57853
2024-01-22 14:44:07 +01:00
Alexander Tokmakov
0f0785cf20
Merge pull request #59059 from ClickHouse/revert-58838-allow-parallel-replicas-for-join-with-analyzer
...
Revert "Allow parallel replicas for JOIN with analyzer [part 1]."
2024-01-22 14:07:26 +01:00
Dmitry Novik
a18a8d8ea3
Merge pull request #59009 from nickitat/uniq_optimisation_for_distributed
...
`uniqExact` state parallel merging for distributed queries
2024-01-22 14:05:02 +01:00
kssenii
4b4eac7c06
Fix
2024-01-22 13:55:15 +01:00
Alexander Tokmakov
4315d44517
Revert "Allow parallel replicas for JOIN with analyzer [part 1]."
2024-01-22 13:30:35 +01:00
kssenii
3faf4087e3
Fix
2024-01-22 12:07:49 +01:00
Raúl Marín
d9ab300300
Merge pull request #57853 from jiebinn/rewriteSumFunction
...
Rewrite the AST/Analyzer of sum(column +/- literal) function
2024-01-22 10:41:30 +01:00
jsc0218
6f3124acdb
Merge pull request #58402 from zhangyifan27/add_max_estimated_execution_time
...
Seperate max_execution_time and max_estimated_execution_time
2024-01-21 19:57:06 -05:00
Vitaly Baranov
01aafda27b
Merge pull request #58804 from vitlibar/allow-kill-query-for-backups
...
Allow KILL QUERY for backups
2024-01-20 23:48:18 +01:00