Commit Graph

4859 Commits

Author SHA1 Message Date
avogar
f2997c9c89 Fix settings changes history 2024-04-03 12:08:25 +00:00
avogar
d87d5a9197 Merge branch 'master' of github.com:ClickHouse/ClickHouse into better-stress-upgrade-checks 2024-04-03 12:07:22 +00:00
kevinyhzou
44b3ce9ec8 review fix 2024-04-03 19:49:55 +08:00
Anton Popov
534905ff8c fix test 2024-04-02 22:14:58 +00:00
Anton Popov
ed448eae42 add setting lightweight_deletes_sync 2024-04-02 18:40:46 +00:00
alesapin
add92939da
Merge d11d10050b into e037e68130 2024-04-02 16:08:10 +00:00
alesapin
f5c5146153 [RFC] Try to add global Real and CPU trace collector 2024-04-02 18:04:53 +02:00
kevinyhzou
27d13a400f add settings to changes history 2024-04-02 20:39:17 +08:00
Raúl Marín
40a22ffa63 Remove a few nested include dependencies 2024-04-02 13:43:14 +02:00
kevinyhzou
6018434f82 add config input_format_hive_text_allow_variable_number_of_columns 2024-04-02 19:37:23 +08:00
Raúl Marín
a7f48cf936 Fix upgrade check 2024-04-01 14:12:36 +02:00
Duc Canh Le
e8953a379b fix external table with Bool
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-03-31 07:54:58 +00:00
Kruglov Pavel
9b5b44dd5f
Merge pull request #61889 from Avogar/allow-to-save-bad-json-escape-sequences
Add a setting to allow saving bad escape sequences in JSON input formats
2024-03-28 14:34:02 +01:00
János Benjamin Antal
7b692b6073 Add docs and fix inline docs. 2024-03-28 10:13:31 +00:00
Igor Nikonov
15a0f5381f
Merge pull request #59176 from azat/dist/readonly-replicas
Add ability to skip read-only replicas for INSERT into Distributed engine
2024-03-27 13:19:12 +01:00
Dmitry Novik
65121b712e Merge remote-tracking branch 'origin/master' into enable-analyzer 2024-03-26 19:02:30 +01:00
Azat Khuzhin
3481fd5191 Fix settings history for distributed_insert_skip_read_only_replicas
CI: https://s3.amazonaws.com/clickhouse-test-reports/59176/fa0c47a42f4187e8284e19d1cd008a0a76c38caf/fast_test.html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:25:28 +01:00
Azat Khuzhin
1bb9cffb9b Remove distributed_insert_skip_read_only_replicas from settings history
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:24:59 +01:00
Azat Khuzhin
c7b919b19e Replace distributed_insert_replicas_preferences with distributed_insert_skip_read_only_replicas
v2: fix test
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:24:57 +01:00
Azat Khuzhin
fe613ddd06 Convert distributed_insert_replicas_preferences into enum
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:24:14 +01:00
Azat Khuzhin
d922bfb1b0 Introduce distributed_insert_prefer_non_readonly_replica setting
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:21:40 +01:00
Azat Khuzhin
b9469e2729 Do not try to INSERT into readonly replicas for Distributed engine
Sometimes replica may be readonly for a long time, and this will make
some INSERT queries fail, but it does not make sense to INSERT into
readonly replica, so let's ignore them.

But note, that this will require to extend TableStatus (not extend, but
introduce new version), that will have is_readonly field.

Also before background INSERT into Distributed does not uses
getManyChecked() which means that they do not request TableStatus
packet, while now they would, though this is minor (just a note).

v2: Add a note about max_replica_delay_for_distributed_queries for INSERT
v3: Skip read-only replicas for async INSERT into Distributed
v4: Remove extra @insert parameter for ConnectionPool*::get*
    It make sense only when the table name had passed --
    ConnectionPoolWithFailover::getManyChecked()
v5: rebase on top LoggerPtr
v6: rebase
v7: rebase
v8: move TryResult::is_readonly into the end

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-26 11:21:38 +01:00
avogar
dc87c483dd Add a setting to allow saving bad escape sequences in JSON input formats 2024-03-25 21:58:53 +00:00
Kruglov Pavel
de1229ba60
Merge branch 'master' into better-stress-upgrade-checks 2024-03-25 19:18:35 +01:00
Alexey Milovidov
c2209c997c
Merge branch 'master' into geodistance-double-precision 2024-03-25 17:49:32 +03:00
Alexey Milovidov
24261476c4
Merge pull request #61820 from ClickHouse/get-client-http-header
Add a new function `getClientHTTPHeader`
2024-03-25 17:48:24 +03:00
Alexey Milovidov
21a0d17637
Merge branch 'master' into geodistance-double-precision 2024-03-25 17:47:42 +03:00
SmitaRKulkarni
a642f4d3ec
Merge pull request #59929 from ClickHouse/Azure_write_buffer
Asynchronous WriteBuffer for AzureBlobStorage
2024-03-25 10:32:56 +01:00
Alexey Milovidov
a600e181ec
Merge branch 'master' into get-client-http-header 2024-03-25 07:23:43 +03:00
Alexey Milovidov
4d588c4bbe Merge branch 'master' into enable-output_format_pretty_row_numbers 2024-03-24 23:17:50 +01:00
Alexey Milovidov
65650809b4 Double precision of geoDistance if the arguments are Float64 2024-03-24 23:11:35 +01:00
Dmitry Novik
64301191b1 Merge remote-tracking branch 'origin/master' into enable-analyzer 2024-03-24 21:07:26 +00:00
Alexey Milovidov
baef1cd4d2 Merge branch 'master' into get-client-http-header 2024-03-24 21:37:14 +01:00
Smita Kulkarni
0d54dbf460 Merge branch 'master' into Azure_write_buffer 2024-03-24 20:09:47 +01:00
Alexey Milovidov
233d41d5df Update test 2024-03-24 17:39:47 +01:00
Alexey Milovidov
0067ef0f97
Merge pull request #57857 from canhld94/ch_external_table_enum
Allow declaring enum in external table structure
2024-03-24 19:33:47 +03:00
Alexey Milovidov
8ddfe9a48b
Merge pull request #61665 from ClickHouse/build-improvements-magic-enum-template-instantiation
Build improvements by removing magic enum from header and apply some explicit template instantiation
2024-03-24 19:31:46 +03:00
Alexey Milovidov
93beef8bb5
Merge pull request #61399 from azat/order-by-SimpleAggregateFunction
Forbid SimpleAggregateFunction in ORDER BY of MergeTree tables
2024-03-24 19:31:18 +03:00
Alexey Milovidov
2796dc7eb1
Merge branch 'master' into dont-cut-single-value 2024-03-24 19:26:29 +03:00
alesapin
a41c005a6e
Merge branch 'master' into Azure_write_buffer 2024-03-24 15:04:18 +01:00
Alexey Milovidov
8936528372 Merge branch 'master' into order-by-SimpleAggregateFunction 2024-03-24 02:16:57 +01:00
Alexey Milovidov
810c173d35 Merge branch 'master' into parquet-orc-arrow-usability 2024-03-24 00:55:31 +01:00
Alexey Milovidov
08b7dd9591 Merge branch 'master' into get-client-http-header 2024-03-24 00:54:25 +01:00
Alexey Milovidov
3e5ddddb35 Merge branch 'master' into dont-cut-single-value 2024-03-24 00:51:10 +01:00
Alexey Milovidov
ae8c9caa67 Merge branch 'master' into enable-output_format_pretty_row_numbers 2024-03-23 23:44:52 +01:00
Alexey Milovidov
78d3351552 Add function getClientHTTPHeader, part 3 2024-03-23 21:48:28 +01:00
Alexey Milovidov
965a3ac2f3 Add function getClientHTTPHeader, part 2 2024-03-23 21:19:35 +01:00
Alexey Milovidov
d0a0141a47 Change defaults of Parquet/ORC/Arrow 2024-03-23 17:39:04 +01:00
Alexey Milovidov
616046db63 Merge branch 'master' into enable-output_format_pretty_row_numbers 2024-03-23 16:50:12 +01:00
Smita Kulkarni
19e7022a87 Merge branch 'master' into Azure_write_buffer 2024-03-23 11:48:10 +01:00
Alexey Milovidov
4cbecd0bbd Add a setting 2024-03-23 04:20:52 +01:00
Alexey Milovidov
a2e89c8be7 Fix wrong cases of numbers pretty printing
Add a test

Revert changes from another branch

Add a test

Better test

Revert wrong changes
2024-03-23 03:33:03 +01:00
Alexey Milovidov
bf6d15dceb
Merge branch 'master' into log_processors_profiles 2024-03-22 23:26:28 +03:00
Alexey Milovidov
ada32a433a Enable output_format_pretty_row_numbers by default 2024-03-22 19:51:47 +01:00
Dmitry Novik
d43a1a1984 Merge remote-tracking branch 'origin/master' into enable-analyzer 2024-03-22 14:15:57 +01:00
Nikolai Kochetov
0f60596f5b
Merge pull request #60548 from kitaisreal/merge-tree-read-split-ranges-into-intersecting-and-non-intersecting-fault-injection
MergeTree read split ranges into intersecting and non intersecting injection
2024-03-22 11:52:14 +01:00
robot-ch-test-poll
03a4b5fb58
Merge pull request #61053 from ClickHouse/async-loader-waiters-limit
Separate limits on number of waiting and executing queries
2024-03-22 03:15:25 +01:00
Alexey Milovidov
828c555780 Fix build 2024-03-22 00:43:21 +01:00
Duc Canh Le
f45e3ba432 address review comments
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-03-22 00:43:21 +01:00
Duc Canh Le
415ed79b16 allow declaring enum in external table structure
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2024-03-22 00:43:21 +01:00
Maksim Kita
8ca9c1fb6b Merge branch 'master' into merge-tree-read-split-ranges-into-intersecting-and-non-intersecting-fault-injection 2024-03-21 21:25:18 +03:00
Kseniia Sumarokova
0c824dab17
Merge pull request #60585 from aalexfvk/traverse_shadow_remote_data_paths
Traverse shadow directory for system.remote_data_paths
2024-03-21 19:02:36 +01:00
serxa
c31b958f88 Merge branch 'master' into async-loader-waiters-limit 2024-03-21 10:58:22 +00:00
Smita Kulkarni
6c5e881da7 Merge branch 'master' into Azure_write_buffer 2024-03-21 11:12:19 +01:00
Maksim Kita
2186552288 Updated SettingsChangesHistory 2024-03-21 12:41:45 +03:00
Maksim Kita
b8c53d7cf3 Fixed tests 2024-03-21 12:41:15 +03:00
Maksim Kita
4b144f94f8 MergeTree read split ranges into intersecting and non intersecting injection 2024-03-21 12:41:15 +03:00
János Benjamin Antal
9e8c731e1e Remove some inclusion of magic enum 2024-03-20 17:00:36 +00:00
Raúl Marín
c98634ad8c Merge remote-tracking branch 'blessed/master' into nested_includes 2024-03-20 14:08:10 +01:00
Kruglov Pavel
e7e11d738b
Merge branch 'master' into revert-61200-revert-60430-max-parallel-replicas-validate 2024-03-20 13:59:38 +01:00
Dmitry Novik
200b500ecf Enable experimental analyzer by default 2024-03-20 13:12:58 +01:00
Raúl Marín
ce27f4cd57
Merge pull request #61468 from Algunenano/disable_adaptative
Disable async_insert_use_adaptive_busy_timeout correctly with compatibility settings
2024-03-20 12:34:26 +01:00
Smita Kulkarni
9f2d44fc65 Merge branch 'master' into Azure_write_buffer 2024-03-20 11:02:48 +01:00
vdimir
7ba425a76d
Merge pull request #60182 from ClickHouse/vdimir/analyzer/join_using_parent_scope
Analyzer: support join using column from select list
2024-03-20 10:59:31 +01:00
vdimir
9a43f7941b
Merge pull request #61456 from kitaisreal/temporary-data-use-temporary-files-codec-setting
Temporary data use temporary_files_codec setting
2024-03-20 10:54:17 +01:00
Kseniia Sumarokova
05516112ca
Merge pull request #61537 from ClickHouse/s3queue-disallow-sharded-processing
Disallow s3queue sharded mode
2024-03-20 10:53:51 +01:00
Azat Khuzhin
11d0b0a9fa Forbid SimpleAggregateFunction in ORDER BY of MergeTree tables
Like AggregateFunction is forbidden, but they are forbidden because they
are not comparable.

New setting (allow_suspicious_primary_key) had been added for backard
compatiblity (turned OFF by default).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-03-19 21:09:30 +01:00
Maksim Kita
ec6c276a92 Temporary data use temporary_files_codec setting 2024-03-19 19:07:45 +03:00
Raúl Marín
de855ca917 Reduce header dependencies 2024-03-19 17:04:29 +01:00
Dmitry Novik
a8885e361e
Merge branch 'master' into vdimir/analyzer/join_using_parent_scope 2024-03-19 15:51:53 +01:00
Raúl Marín
1c4ff83356 Merge remote-tracking branch 'blessed/master' into disable_adaptative 2024-03-19 12:10:15 +01:00
avogar
dba72bf9c5 Fix 2024-03-19 10:02:35 +00:00
Smita Kulkarni
45e15d16e5 Merge branch 'master' into Azure_write_buffer 2024-03-19 09:31:11 +01:00
Robert Schulze
0daaeeab78
Merge pull request #61406 from rschu1ze/enable-clang-tidy-in-headers
Enable clang-tidy in headers
2024-03-18 21:43:26 +01:00
avogar
31d5049f80 Move logic of ignoring drop queries to server 2024-03-18 16:26:05 +00:00
kssenii
b814fabcd3 Disallow s3queue sharded mode 2024-03-18 17:22:38 +01:00
Kseniia Sumarokova
d4895c2e52
Merge pull request #61324 from ClickHouse/add-zk-retries
Add zookeeper retries for exists check in forcefullyRemoveBrokenOutdatedPartFromZooKeeper
2024-03-18 16:17:37 +01:00
Raúl Marín
46f0f385aa Merge remote-tracking branch 'blessed/master' into disable_adaptative 2024-03-18 16:11:34 +01:00
Robert Schulze
0dff126942
Merge remote-tracking branch 'rschu1ze/master' into enable-clang-tidy-in-headers 2024-03-18 11:34:13 +00:00
vdimir
dbed5d1902
Add analyzer_compatibility_join_using_top_level_identifier 2024-03-18 11:11:21 +00:00
robot-ch-test-poll4
e8a08baf23
Merge pull request #61092 from rschu1ze/locate-mysql
Make the argument order for `locate` compatible with MySQL
2024-03-18 11:55:05 +01:00
Raúl Marín
34be6cf1e1 Merge remote-tracking branch 'blessed/master' into disable_adaptative 2024-03-18 11:38:18 +01:00
Kseniia Sumarokova
6d2e48d085
Merge branch 'master' into add-zk-retries 2024-03-18 11:24:36 +01:00
alesapin
0faf4eacb8
Merge pull request #61299 from ClickHouse/merge_config
Add ability to merge includes for config preprocessor for configs
2024-03-18 11:22:42 +01:00
Robert Schulze
c17536c3b3
Enable clang-tidy in headers 2024-03-18 08:00:09 +00:00
Alexey Milovidov
01136bbc3b Limit backtracking in parser 2024-03-17 19:54:45 +01:00
Kseniia Sumarokova
d4205afe82
Merge branch 'master' into add-zk-retries 2024-03-17 17:56:32 +01:00
Raúl Marín
b9f6de095d Disable async_insert_use_adaptive_busy_timeout correctly with compatibility settings 2024-03-15 18:11:35 +01:00
avogar
9b6a5df20d Merge commit 'a3373ab580804545bafc9db64e10c95b067f6ecb' of github.com:ClickHouse/ClickHouse into revert-61200-revert-60430-max-parallel-replicas-validate 2024-03-15 15:13:41 +00:00
alesapin
38cd6ef27d Merge branch 'master' into merge_config 2024-03-15 13:52:52 +01:00