Commit Graph

36758 Commits

Author SHA1 Message Date
Antonio Andelic
5de6f86c27 Fix clang-tidy error 2023-02-01 12:28:44 +00:00
Vladimir C
7c6281c446
Merge pull request #45581 from Avogar/fix-date-inference 2023-02-01 13:04:12 +01:00
Vladimir C
0d48eed68f
Merge pull request #45848 from Algunenano/fix_connection_timeouts_context_include 2023-02-01 12:53:50 +01:00
Vladimir C
dad838859b
Merge pull request #44489 from canhld94/ch_canh_fix_sparkbar 2023-02-01 12:50:00 +01:00
Igor Nikonov
04c9fcddcb
Merge pull request #45822 from taofengliu/planner_bug
A bug fix for Planner
2023-02-01 12:43:24 +01:00
Igor Nikonov
5143131179
Merge pull request #45817 from taofengliu/bug_fix
A bug fix for QueryTreeBuilder
2023-02-01 11:44:42 +01:00
Robert Schulze
216636f984
Make query cache global settings re-configurable 2023-02-01 10:35:19 +00:00
liuneng
17fc22a21e add parquet max_block_size setting 2023-02-01 18:29:20 +08:00
Robert Schulze
8a9493aeb9
Update QueryCache.cpp 2023-02-01 11:28:00 +01:00
Robert Schulze
f6259fbd65
Query cache: Improve logging 2023-02-01 10:24:17 +00:00
Robert Schulze
b512316586
Merge pull request #45682 from ClickHouse/rename-qrc-to-qc
Rename "Query Result Cache" to "Query Cache"
2023-02-01 11:23:29 +01:00
Raúl Marín
61dfebd299 Upstyle 2023-02-01 11:11:03 +01:00
Alexander Gololobov
e705f11ad1
Merge pull request #45786 from ClickHouse/delete_on_cluster
Support DELETE ON CLUSTER
2023-02-01 10:52:01 +01:00
Antonio Andelic
a3e3b65b32
Merge branch 'master' into keeper-use-fallocate 2023-02-01 09:05:49 +01:00
liuneng
cda9b0beea optimize parquet reader 2023-02-01 15:54:10 +08:00
robot-ch-test-poll2
202fa9fa37
Merge pull request #45859 from FArthur-cmd/show_engines_support
Add support for SHOW ENGINES query
2023-02-01 07:32:56 +01:00
FFFFFFFHHHHHHH
eca344eff1
Update src/TableFunctions/TableFunctionFormat.cpp
Co-authored-by: flynn <fenglv15@mails.ucas.ac.cn>
2023-02-01 14:12:36 +08:00
Alexey Milovidov
bf9f62dcbd
Merge pull request #38456 from sauliusvl/iouring
Re-introduce io_uring read method
2023-02-01 06:41:32 +03:00
fhbai
d0fc3d9d4e allow a three-argument version for table function format 2023-02-01 11:17:14 +08:00
Alexey Milovidov
9b908a0be0 Fix trash around query kind, part 2 2023-02-01 03:31:31 +01:00
Alexey Milovidov
5c4db119fa Fix trash around query kind, part 1 2023-02-01 03:11:54 +01:00
Alexey Milovidov
c7f9cf6587
Update InterpreterShowEngineQuery.h 2023-02-01 04:57:58 +03:00
Yakov Olkhovskiy
3d64c84571 fix ipv6 parser 2023-02-01 01:02:58 +00:00
Alexey Milovidov
95e267561a
Update AggregateFunctionSparkbar.h 2023-02-01 00:46:37 +03:00
Vitaly Baranov
96b140cc95 Rename columns in system.backups: num_files, num_processed_files, processed_files_size
num_processed_files -> num_files (BACKUP) / files_read (RESTORE)
processed_files_size -> total_size (BACKUP) / bytes_read (RESTORE)
2023-01-31 22:45:41 +01:00
Alexey Milovidov
1cb7574498
Update AggregateFunctionSparkbar.h 2023-02-01 00:44:27 +03:00
Raúl Marín
0b201ebff2 Improve how the obfuscator deals with queries 2023-01-31 20:19:32 +01:00
Yakov Olkhovskiy
f4ef21cb2f allow implicit narrowing conversion UInt64 => IPv4 2023-01-31 19:04:21 +00:00
Alexey Milovidov
075dfe9005
Merge pull request #45750 from ucasfl/arrow-duration
Arrow support duration type
2023-01-31 20:34:38 +03:00
kssenii
4a1bdcf24c Merge remote-tracking branch 'upstream/master' into storage-rabbitmq-fix-flush 2023-01-31 18:11:26 +01:00
Antonio Andelic
ece92fa866
Update src/Coordination/Changelog.cpp
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2023-01-31 17:11:18 +01:00
Anton Popov
1c4174750d fix mistake after refactoring 2023-01-31 15:48:14 +00:00
FArthur-cmd
a8e38738e9 add support for show engines query 2023-01-31 18:35:10 +03:00
Raúl Marín
7c31cb7adc Proper includes for ConnectionTimeoutsContext.h 2023-01-31 16:11:32 +01:00
Alexander Gololobov
96cb23a6a1 Break on first non-empty block 2023-01-31 15:49:56 +01:00
Antonio Andelic
8457d3bf3d Apply comments 2023-01-31 14:18:54 +00:00
Antonio Andelic
1786237be6 Merge branch 'master' into keeper-use-fallocate 2023-01-31 13:53:47 +00:00
Vitaly Baranov
6165625e27
Update src/Parsers/ASTFunction.cpp
Co-authored-by: SmitaRKulkarni <64093672+SmitaRKulkarni@users.noreply.github.com>
2023-01-31 14:43:48 +01:00
Vitaly Baranov
c6be69568a
Update src/Parsers/ASTFunction.cpp
Co-authored-by: SmitaRKulkarni <64093672+SmitaRKulkarni@users.noreply.github.com>
2023-01-31 14:43:30 +01:00
Robert Schulze
5f91a78fda
Merge pull request #45652 from ClickHouse/block-delta-gorilla
Mark delta/doubledelta codec followed by Gorilla/FPC as suspicious
2023-01-31 14:06:57 +01:00
Raúl Marín
bacfe7ffa5 Fix ASTQualifiedAsterisk cloning 2023-01-31 14:02:46 +01:00
taofengliu
aae5d302be bug fix 2023-01-31 20:49:21 +08:00
Anton Popov
9f4658151e
Merge pull request #45799 from ClickHouse/func-iptypes-empty
Add empty/notEmpty function support for IP types
2023-01-31 13:37:23 +01:00
Alexander Tokmakov
51b0f66e6b
Merge pull request #45793 from ClickHouse/fix_part_check_cancellation
Fix race condition on a part check cancellation
2023-01-31 14:15:17 +03:00
FFFFFFFHHHHHHH
eb7df4e403 fix 2023-01-31 18:45:37 +08:00
刘陶峰
2014cc5fa7
Merge branch 'master' into bug_fix 2023-01-31 18:42:52 +08:00
taofengliu
95ebfbe0c7 bug fix 2023-01-31 18:34:17 +08:00
Robert Schulze
170fff16e4
Merge pull request #45816 from ClickHouse/minor-doc-fixes
Minor doc follow-up to #45382
2023-01-31 11:32:48 +01:00
Kseniia Sumarokova
7d53f8bbf6
Merge pull request #45591 from bharatnc/ncb/odbc-connection-pool-fixes
fixes to use the odbc_bridge_use_connection_pooling setting correctly
2023-01-31 11:31:59 +01:00
Robert Schulze
44a5e9cb17
Minor doc follow-up to #45382 2023-01-31 10:31:01 +00:00
Robert Schulze
fdd6c77480
Merge pull request #45382 from bigo-sg/improve_position
Add fastpath for function position when needle is empty
2023-01-31 11:22:31 +01:00
Robert Schulze
325c6bdf3d
Renaming: "Query Result Cache" --> "Query Cache"
Reasons:

- The cache will at some point store intermediate results as opposed to
  only query results. We should change the terminology now without
  having to worry about backward compat.

- Equivalent caches in MySQL (1) and Starrocks (2) are called "query
  cache".

- The new name is ca. 13.8% more catchy.

(1) https://dev.mysql.com/doc/refman/5.6/en/query-cache.html
(2) https://docs.starrocks.io/en-us/2.5/using_starrocks/query_cache
2023-01-31 09:54:34 +00:00
Robert Schulze
659a64a1d9
Merge pull request #45679 from ClickHouse/untangle-query-result-cache-settings
Untangle configuration of query result cache
2023-01-31 10:44:14 +01:00
Alexander Gololobov
f9133f3d85
Merge pull request #45791 from ClickHouse/fix_drop_hung
Fix bug in tables drop which can lead to potential query hung
2023-01-31 10:11:11 +01:00
FFFFFFFHHHHHHH
c64ffc6389 fix style 2023-01-31 15:59:35 +08:00
FFFFFFFHHHHHHH
0a6cc61fd9 Merge branch 'corrMatrix' of github.com:FFFFFFFHHHHHHH/ClickHouse into corrMatrix 2023-01-31 15:50:28 +08:00
FFFFFFFHHHHHHH
78f2d6fb25 fix 2023-01-31 15:44:33 +08:00
taiyang-li
4cf11d9a84 change as request 2023-01-31 10:48:02 +08:00
Duc Canh Le
e8ebd2e845 updateFrame returns size_t 2023-01-31 10:04:19 +08:00
Duc Canh Le
ae98847d31 Merge branch 'master' into ch_canh_fix_sparkbar 2023-01-31 10:01:16 +08:00
Alexey Milovidov
40b00432d2
Merge pull request #45737 from chhetripradeep/pchhetri/fix-45690
Set compression method and level for backup writer
2023-01-31 04:14:57 +03:00
Anton Popov
31e8b692f4 fix typo 2023-01-31 01:13:23 +00:00
Anton Popov
839cd614fb fix memory leak in azure sdk 2023-01-31 01:01:10 +00:00
Bharat Nallan
f1d6e3b908
Merge branch 'master' into ncb/odbc-connection-pool-fixes 2023-01-30 15:49:04 -08:00
Alexander Gololobov
93b82a2c44 Use multithreaded executor in isStorageTouchedByMutations() 2023-01-30 23:48:52 +01:00
Ilya Yatsishin
8d6df7ed58
Merge pull request #45785 from Algunenano/generate_random_types 2023-01-30 23:03:12 +01:00
Alexander Gololobov
4eea3de654 Do not restrict count() query to 1 thread in isStorageTouchedByMutations() 2023-01-30 22:29:28 +01:00
Yakov Olkhovskiy
79d82a3587 add empty/notEmpty function support for IP types 2023-01-30 20:37:08 +00:00
Alexey Milovidov
f46bfaa1c9
Merge pull request #45760 from ClickHouse/fix-trash
Remove trash
2023-01-30 22:53:32 +03:00
Vitaly Baranov
d95d8bcb26 Rename isCollectionNameArgument() -> isNamedCollectionName() and add comments. 2023-01-30 19:31:32 +01:00
Alexander Tokmakov
e42cd3163f fix race condition on a part check cancellation 2023-01-30 18:48:20 +01:00
Alexander Gololobov
863548114d force_wait flag is no longer needed 2023-01-30 18:38:28 +01:00
Pradeep Chhetri
455bd1a14a
Merge branch 'master' into pchhetri/fix-45690 2023-01-31 00:48:46 +08:00
Vitaly Baranov
2e3a3cc4dc
Merge pull request #45701 from vitlibar/add-setting-allow-head-object-request
Add new S3 setting allow_head_object_request
2023-01-30 17:41:09 +01:00
Bharat Nallan Chakravarthy
0d2e4fcc15 set use_connection_pooling from settings everywhere 2023-01-30 08:22:48 -08:00
alesapin
9ecf6e70a9 Make disk object storage compatible with other storages 2023-01-30 17:16:07 +01:00
Robert Schulze
abac59477b
Update src/Core/Settings.h
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
2023-01-30 17:12:01 +01:00
Robert Schulze
b42383f0d4
Update src/Core/Settings.h
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
2023-01-30 17:11:53 +01:00
alesapin
be58d5d1af Fix bug in tables drop which can lead to potential query hung 2023-01-30 17:00:28 +01:00
Alexander Gololobov
de841b29c7 Support delete ON CLUSTER 2023-01-30 16:42:52 +01:00
Alexander Gololobov
386ae9266d Rewrite DELETE into ALTER UPDATE _row_exists=0 2023-01-30 15:46:17 +01:00
Raúl Marín
997fad4e8d GenerateRandom: Add support for maps 2023-01-30 15:23:22 +01:00
Robert Schulze
27b978381b
Use more speaking setting names 2023-01-30 14:20:43 +00:00
Pradeep Chhetri
deaa70fb14
Merge branch 'master' into pchhetri/fix-45690 2023-01-30 21:35:16 +08:00
Raúl Marín
05d8cfc714 GenerateRandom: Add support to IPv4 and IPv6 types 2023-01-30 14:18:25 +01:00
Vladimir C
e7e8ae979f
Merge pull request #45271 from jh0x/feature-array-shuffle 2023-01-30 11:54:07 +01:00
Vitaly Baranov
6ee9971931 Mask sensitive info in named collection's overrides. 2023-01-30 11:33:21 +01:00
Robert Schulze
7cc1c19227
Fix typo 2023-01-30 10:25:16 +00:00
Robert Schulze
66392b873c
Merge pull request #45513 from aiven-sal/aiven-sal/siphash_pr
Keyed SipHash
2023-01-30 11:10:00 +01:00
Robert Schulze
8fa9db3c8b
Merge pull request #45757 from ClickHouse/rs-fix-typo
Fix typo + add boringssl comment
2023-01-30 11:06:57 +01:00
Vitaly Baranov
38910412c4
Merge pull request #42244 from AVMusorin/fix_backup_restore_num_files
Added num_processed_files and processed_files_size for backup and restore processes
2023-01-30 09:24:49 +01:00
taiyang-li
d25740da83 change as request 2023-01-30 16:13:12 +08:00
taiyang-li
5db514fb05 Merge branch 'master' into improve_position 2023-01-30 15:29:32 +08:00
Alexey Milovidov
b72a5b95e2
Merge branch 'master' into pchhetri/fix-45690 2023-01-30 06:25:03 +03:00
Alexey Milovidov
0d49166b0f
Merge branch 'master' into fix-trash 2023-01-30 04:46:22 +03:00
Alexey Milovidov
a7299746c7
Merge pull request #45743 from ClickHouse/oom-message
Improve MEMERY_LIMIT_EXCEEDED exception message
2023-01-30 00:46:04 +03:00
Alexey Milovidov
04078dbed3 Remove trash 2023-01-29 22:43:36 +01:00
Robert Schulze
15ae2d1de5
Merge branch 'master' into aiven-sal/siphash_pr 2023-01-29 21:06:52 +01:00
Robert Schulze
c85cc3e003
Merge branch 'master' into block-delta-gorilla 2023-01-29 21:05:15 +01:00
Robert Schulze
e88aa18a8c
Fix typo 2023-01-29 20:01:30 +00:00
Vitaly Baranov
326f4d2a4f Fix using mutex for increaseProcessSize 2023-01-29 17:50:53 +01:00
Alexey Milovidov
3534c39dc2
Merge pull request #44923 from azat/bg-pool-catch
Catch exceptions in BackgroundSchedulePool
2023-01-29 19:44:48 +03:00
Alexey Milovidov
303fc4b863
Merge pull request #45744 from ClickHouse/fix-style-and-typo
Fix style and typo
2023-01-29 19:40:32 +03:00
alesapin
631c8fb155
Merge branch 'master' into add-setting-allow-head-object-request 2023-01-29 14:58:27 +01:00
flynn
801d6db486 Arrow support duration type 2023-01-29 10:55:31 +00:00
Robert Schulze
856eba0a4b
Mark delta/doubledelta codec followed by a time series codec as suspicious 2023-01-29 08:51:13 +00:00
Pradeep Chhetri
9919fb0be9
Merge branch 'master' into pchhetri/fix-45690 2023-01-29 11:35:26 +08:00
Alexey Milovidov
76975c00d4
Merge pull request #43405 from azat/fs/use-access
Simply filesystem helpers to check is-readable/writable/executable
2023-01-29 06:21:00 +03:00
Alexey Milovidov
c3c1ed01d9
Merge branch 'master' into bg-pool-catch 2023-01-29 06:19:38 +03:00
Alexey Milovidov
49a59ff9bd Fix bad comment 2023-01-29 03:57:59 +01:00
Alexey Milovidov
9ad87f9917 Fix style and typo 2023-01-29 03:51:42 +01:00
Dmitry Novik
ec1f6bfd37 Improve MEMERY_LIMIT_EXCEEDED exception message 2023-01-29 01:52:37 +00:00
Alexey Milovidov
f4eb19bd69
Update InterpreterSystemQuery.cpp 2023-01-29 04:43:24 +03:00
Saulius Valatka
374e40447c fix buffer alignment and improve error message for failed reads 2023-01-28 21:54:44 +02:00
Saulius Valatka
252a091702 update Exception creation 2023-01-28 21:54:44 +02:00
Saulius Valatka
64accde7bd check for null CQEs to silence clang-analyzer 2023-01-28 21:54:44 +02:00
Saulius Valatka
4b2fefef8b improve SQE submission error reporting, retry on EINTR/EGAIN 2023-01-28 21:54:44 +02:00
Saulius Valatka
8505b8c57a add profile events for failed/succeeded CQE completions 2023-01-28 21:54:44 +02:00
Saulius Valatka
8fa9a99ba1 implement pending request queue to prevent CQ overflows 2023-01-28 21:54:44 +02:00
Saulius Valatka
ac2c921bdf add initial io_uring support 2023-01-28 21:54:44 +02:00
Saulius Valatka
fb45ed038f add liburing to build 2023-01-28 21:54:44 +02:00
Pradeep Chhetri
8156a6761f Set compression method and level for backup writer
Signed-off-by: Pradeep Chhetri <pradeepchhetri4444@gmail.com>
2023-01-28 21:49:59 +08:00
freedomDR
5836a3f153 refactor coder 2023-01-28 04:27:11 +00:00
freedomDR
379850b6c4 add system sync file cache 2023-01-28 04:27:10 +00:00
Alexey Milovidov
bc2f454522
Merge branch 'master' into block-non-float-gorilla-v2 2023-01-28 03:30:12 +03:00
Alexey Milovidov
9b1b247f9b
Merge pull request #45585 from kitaisreal/low-cardinality-insert-fix
LowCardinality insert fix
2023-01-28 03:26:40 +03:00
Alexey Milovidov
657d9f69e7
Merge pull request #45686 from amosbird/issue_45590
Fix key description when encountering duplicate primary keys
2023-01-28 02:22:42 +03:00
Joanna Hulboj
df030a56f0 FIXUP: Remove use of legacy exceptions api 2023-01-27 21:27:09 +00:00
Azat Khuzhin
ffd5617614 Improve logging for broken disks
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-01-27 21:11:10 +01:00
Azat Khuzhin
6b42b66257 Simply filesystem helpers to check is-readable/writable/executable
Use one system call - faccessat(), over multiple system calls.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-01-27 21:11:10 +01:00
Kruglov Pavel
96700abbe1
Merge pull request #45678 from azat/formats/json-parse-tupels
Add ability to ignore unknown keys in JSON object for named tuples
2023-01-27 21:11:05 +01:00
Joanna Hulboj
9a559b5475 FIXUP: More comments about shuffle 2023-01-27 20:07:56 +00:00
Joanna Hulboj
8791a44e01 FIXUP: Added info and test for materialized array 2023-01-27 20:07:56 +00:00
Joanna Hulboj
3b472eb2dd FIXUP: Darwin compilation issue 2023-01-27 20:07:56 +00:00
Joanna Hulboj
e1d281206f Clamp the limit for arrayPartialShuffle 2023-01-27 20:07:56 +00:00
Joanna Hulboj
b0ba8c02be FIXUP: Darwin compilation issue 2023-01-27 20:07:55 +00:00
Joanna Hulboj
d378e453c1 FIXUP: fix in arrayPartialShuffle 2023-01-27 20:07:55 +00:00
Joanna Hulboj
a8b78abc54 Added arrayPartialShuffle function 2023-01-27 20:07:55 +00:00
Joanna Hulboj
31eb936457 Added Fisher-Yates shuffle and partial-shuffle 2023-01-27 20:07:55 +00:00
Joanna Hulboj
09789b027f FIXUP: PR comments 2023-01-27 20:07:55 +00:00
Joanna Hulboj
a65b2cf861 FIXUP: Simplify logic by using permute function 2023-01-27 20:07:55 +00:00
Joanna Hulboj
c09a4dd132 FIXUP: Docs into code 2023-01-27 20:07:55 +00:00
Joanna Hulboj
8d8d1bb887 FIXUP: make clang-tidy happier 2023-01-27 20:07:55 +00:00
Joanna Hulboj
01624e2f23 FIXUP: style 2023-01-27 20:07:55 +00:00
Joanna Hulboj
2355780737 Minor formatting 2023-01-27 20:07:55 +00:00
Joanna Hulboj
4adb6288eb Add arrayShuffle function 2023-01-27 20:07:55 +00:00
Igor Nikonov
300f78df96
Merge pull request #45567 from ClickHouse/enable-remove-redundant-sorting
Enable query_plan_remove_redundant_sorting optimization by default
2023-01-27 19:14:36 +01:00
Vitaly Baranov
af74c008c4 Use one request to implement S3ObjectStorage::getObjectMetadata instead of two ones. 2023-01-27 18:42:37 +01:00
kssenii
9c4a97bbd1 Merge remote-tracking branch 'upstream/master' into storage-rabbitmq-fix-flush 2023-01-27 17:17:09 +01:00
Anton Popov
d8fe2bcbaa
Merge branch 'master' into randomize-mt-settings 2023-01-27 16:03:00 +01:00