Commit Graph

143700 Commits

Author SHA1 Message Date
Robert Schulze
14404b8a0a
Merge remote-tracking branch 'rschu1ze/master' into map-stuff 2024-06-04 08:42:25 +00:00
Nikolai Kochetov
8c2c27e346
Merge pull request #61459 from amosbird/trivial-count-opt-base
Refactor KeyCondition and key analysis
2024-06-04 07:57:18 +00:00
Igor Nikonov
7290e270dc Merge remote-tracking branch 'origin/master' into fix-crash-distinct-optimization 2024-06-04 07:26:58 +00:00
Igor Nikonov
6e5aace682 Fix test 2024-06-04 07:26:24 +00:00
Amos Bird
347c0f3f73
Remove wrong reference 2024-06-04 15:02:03 +08:00
Julia Kartseva
2ee4159453 Fix crash in a local cache over plain_rewritable disk
The plain_rewritable object storage has introduced some new methods
to object storage. Override the CachedObjectStorage methods so that
they call these.
2024-06-04 04:53:38 +00:00
Julia Kartseva
d4e6f2e8d6 Update test_s3_plain_rewritable test
- add cache_s3_plain_rewritable caching disk
- simplify, don't look up counters
2024-06-04 04:53:32 +00:00
Alexey Milovidov
3f58fcb26b
Merge pull request #64765 from ClickHouse/tavplubix-patch-10
Update 02482_load_parts_refcounts.sh
2024-06-04 04:04:16 +00:00
Alexey Milovidov
887a56d5f7
Merge pull request #63584 from ClickHouse/trek
Track memory allocated by the arrow library
2024-06-04 04:03:30 +00:00
Alexey Milovidov
b6e3b9c784
Merge pull request #64774 from ClickHouse/ask-company-name
Ask about company name on GitHub
2024-06-04 05:59:07 +02:00
Alexey Milovidov
a24b9054b3 Whitespace 2024-06-04 05:50:07 +02:00
Alexey Milovidov
84914f2c3d Remove iostream_debug_helpers 2024-06-04 05:48:45 +02:00
Alexey Milovidov
2c581ecc46 Fix SQLite 2024-06-04 05:24:17 +02:00
Alexey Milovidov
f4d1f6050f
Merge pull request #64562 from bigo-sg/literal
ASTLiteral support custom type
2024-06-04 03:20:08 +00:00
Alexey Milovidov
fc0c44c9c4 Ask about company name on GitHub 2024-06-04 05:00:39 +02:00
Alexey Milovidov
863d799765 Whitespace 2024-06-04 04:55:41 +02:00
Alexey Milovidov
b0d6b0ffdf
Merge pull request #64771 from ClickHouse/tfname
Make table functions always report engine 'StorageProxy' in system.tables
2024-06-04 02:33:40 +00:00
shuai-xu
8c62bde552 add comments 2024-06-04 09:36:14 +08:00
Michael Kolupaev
26abb08b84 Conflict 2024-06-04 00:01:25 +00:00
Michael Kolupaev
4e38e89ffd Conflict 2024-06-04 00:01:25 +00:00
Michael Kolupaev
10a78f0841 Declare ErrorCodes 2024-06-04 00:01:25 +00:00
Michael Kolupaev
0fd9cdf47e Track memory allocated by the arrow library 2024-06-04 00:01:25 +00:00
Michael Kolupaev
16bf3e3062 Make table functions always report engine 'StorageProxy' in system.tables 2024-06-03 23:47:52 +00:00
Igor Nikonov
f8e6614b80 Fix crash with DISTINCT and window functions 2024-06-03 20:52:23 +00:00
Igor Markelov
52eb917ef0 Merge branch 'master' into add-compression-sorts-optimization 2024-06-03 20:47:04 +00:00
Alexander Tokmakov
d733bc1023
Update 02482_load_parts_refcounts.sh 2024-06-03 20:17:36 +02:00
Raúl Marín
a6b83a4534 Test stability 2024-06-03 20:02:51 +02:00
Raúl Marín
03c6dca0c0 Fix 02790_async_queries_in_query_log 2024-06-03 19:47:19 +02:00
Yarik Briukhovetskyi
0e2efda93a
black check 2024-06-03 19:39:41 +02:00
Yarik Briukhovetskyi
d459564408
review changes 2024-06-03 19:30:01 +02:00
Raúl Marín
4d461d69fe Speed up RMT too 2024-06-03 19:22:23 +02:00
Azat Khuzhin
1e01adda04 Do not try to write columns.txt if it does not exists for write-once storages
Remember that write-once does not allows move:

    [local] 2024.06.03 17:21:22.520165 [ 10032 ] {c923ec81-c802-407f-8078-a5b46cec4d21} <Error> DiskObjectStorageTransaction: An error occurred while executing transaction's operation #0 (PureMetadataObjectStorageOperation): Code: 48. DB::Exception: Operation is not implemented. (NOT_IMPLEMENTED), Stack trace (when copying this message, always include the lines below):

    0. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0x00000000143113d6
    1. /src/ch/clickhouse/src/Common/Exception.cpp:101: DB::Exception::Exception(DB::Exception::MessageMasked&&, int, bool) @ 0x000000000ae2fd6c
    2. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/string:1499: DB::Exception::Exception(PreformattedMessage&&, int) @ 0x0000000006133a61
    3. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/vector:434: DB::Exception::Exception<>(int, FormatStringHelperImpl<>) @ 0x000000000613f0dc
    4. /src/ch/clickhouse/src/Disks/ObjectStorages/IMetadataStorage.h:164: DB::IMetadataTransaction::throwNotImplemented() @ 0x000000000f895364
    7. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::(anonymous namespace)::PureMetadataObjectStorageOperation::execute(std::shared_ptr<DB::IMetadataTransaction>) @ 0x000000000f84ddde
    8. /src/ch/clickhouse/src/Disks/ObjectStorages/DiskObjectStorageTransaction.cpp:946: DB::DiskObjectStorageTransaction::commit() @ 0x000000000f84d74f
    9. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::DiskObjectStorage::moveFile(String const&, String const&, bool) @ 0x000000000f83c472
    10. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/string:1499: DB::DataPartStorageOnDiskFull::moveFile(String const&, String const&) @ 0x00000000111b541a
    11. /src/ch/clickhouse/src/Storages/MergeTree/IMergeTreeDataPart.cpp:1053: DB::IMergeTreeDataPart::writeColumns(DB::NamesAndTypesList const&, DB::WriteSettings const&) @ 0x00000000111f28be
    12. /src/ch/clickhouse/contrib/llvm-project/libcxx/include/__memory/shared_ptr.h:701: DB::IMergeTreeDataPart::loadColumns(bool) @ 0x00000000111e9883
    13. /src/ch/clickhouse/src/Storages/MergeTree/IMergeTreeDataPart.cpp:714: DB::IMergeTreeDataPart::loadColumnsChecksumsIndexes(bool, bool) @ 0x00000000111e8b12
    14. /src/ch/clickhouse/src/Storages/MergeTree/MergeTreeData.cpp:0: DB::MergeTreeData::loadDataPart(DB::MergeTreePartInfo const&, String const&, std::shared_ptr<DB::IDisk> const&, DB::MergeTreeDataPartState, std::mutex&) @ 0x00000000112849d0

Note, that DataPartStorageOnDiskBase::isReadonly() is used only in
loadColumns() for calling writeColumns() in case of columns.txt does not
exists

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2024-06-03 17:42:25 +02:00
Raúl Marín
eb0fd8aa53 Speed up 02995_forget_partition 2024-06-03 17:33:35 +02:00
Blargian
cfd07e0c83 Review changes 2024-06-03 17:32:09 +02:00
vdimir
ecc6836dee
Merge pull request #64424 from liuneng1994/reduce-parquet-writer-peak-memory
Reduce parquet writer peak memory
2024-06-03 14:49:05 +00:00
Amos Bird
ba7b4e058b
Resolve conflicts 2024-06-03 22:46:18 +08:00
Raúl Marín
ee416a6862
Merge pull request #63723 from Algunenano/ifunction_column_size
Add a bunch of important asserts
2024-06-03 14:04:02 +00:00
Konstantin Bogdanov
aa040c506a
Merge pull request #64521 from azat/bash-completion/fix-settings
Fix bash completion for settings
2024-06-03 13:51:56 +00:00
Antonio Andelic
9be51d6f20 Return the explanation for session moved error 2024-06-03 15:48:18 +02:00
Amos Bird
7e6bb6b20d
Simply based on review comment 2024-06-03 21:25:23 +08:00
Amos Bird
dbecec7dbf
Improve PartitionPruner and trivial count opt 2024-06-03 21:25:21 +08:00
Nikolai Kochetov
49043d4399
Merge pull request #64517 from ClickHouse/fix-some-aliases-for-global-in
Fixing aliases for GLOBAL IN
2024-06-03 13:06:18 +00:00
Yarik Briukhovetskyi
230fbf76a9
Merge pull request #60156 from Artemmm91/hilbert-function
Add `hilbertEncode` and `hilbertDecode` functions
2024-06-03 12:23:01 +00:00
Mikhail Gorshkov
869134eaac Original remaining rows handling retained 2024-06-03 12:14:02 +00:00
Francisco Javier Jurado Moreno
ebf3bbe67a Fix tests and test file names 2024-06-03 13:49:57 +02:00
Nikolai Kochetov
84d2bbcf8b Merge branch 'master' into fix-some-aliases-for-global-in 2024-06-03 11:29:35 +00:00
Nikolai Kochetov
f5c2bbd9ce
Merge pull request #64672 from ClickHouse/split-query-analyzer
Split query analyzer
2024-06-03 11:27:25 +00:00
kssenii
fc06bd7da5 Review fixes 2024-06-03 12:59:27 +02:00
Mikhail Gorshkov
f2bebae0d5 Original formatting retained 2024-06-03 10:55:19 +00:00
Mikhail Gorshkov
0a64a75f19 PR suggestions follow-ups 2024-06-03 10:44:36 +00:00