Commit Graph

32536 Commits

Author SHA1 Message Date
Ilya Yatsishin
bbf88b66a0 more 2022-10-13 11:42:35 +02:00
Vitaly Baranov
2e59d671fc Split UserDefinedSQLObjectsLoader to interface and implementation. 2022-10-13 10:32:32 +02:00
Ilya Yatsishin
e7ca30cd11 fix typo 2022-10-13 10:10:13 +02:00
Alexey Milovidov
96332d9159
Merge branch 'master' into fix-projections 2022-10-13 02:23:32 +02:00
Roman Vasin
590ed7b640 Add transforms for other arguments lke year, quarter etc 2022-10-12 15:16:09 +00:00
Vitaly Baranov
9cb2052c7f Consider Poco::Net::HostNotFoundException as ZCONNECTIONLOSS. 2022-10-12 15:52:55 +02:00
Nikolay Degterinsky
87b77094f0
Merge pull request #42187 from FArthur-cmd/add_default_support_for_settings
Add support for keyword DEFAULT in the set query
2022-10-12 15:30:30 +02:00
lhuang09287750
215acf5e5b check the result of conversion for decimal IN float 2022-10-12 15:28:27 +02:00
lhuang09287750
4b0ac268e8 delete an unusable include 2022-10-12 15:28:27 +02:00
lhuang09287750
cab0291873 for checkstyle:use a internal function to get field string ,instead of std::stringstream 2022-10-12 15:28:27 +02:00
lhuang09287750
338f41913c add a function to process floating point literal comparing with decimal type in IN opertor 2022-10-12 15:28:27 +02:00
vdimir
0178307c27 Followup for TemporaryDataOnDisk 2022-10-12 15:25:23 +02:00
xinhuitian
daaf01c344 early return 2022-10-12 12:18:17 +08:00
flynn
312afdc280 remove useless code 2022-10-12 03:48:37 +00:00
Nikolay Degterinsky
896e3c47f7
Merge pull request #42135 from ClibMouse/add-null-pointer-checks
Add null pointer checks
2022-10-12 01:22:55 +02:00
Alexey Milovidov
bbd1196a96
Update MergeTreeData.cpp 2022-10-12 00:57:02 +03:00
FArthur-cmd
b6304c46d4 move default settings to different part of ast 2022-10-11 18:25:28 +00:00
Azat Khuzhin
688edafcc6 Disks/ObjectStorages: add comments for some classes
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-11 17:21:26 +02:00
Azat Khuzhin
f3833e3a53 Introduce StaticDirectoryIterator
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-11 17:19:35 +02:00
ltrk2
15aa8a88dc Throw an exception in case of inconsistent state 2022-10-11 05:04:47 -07:00
Ilya Yatsishin
3201c08bb5 style 2022-10-11 13:54:03 +02:00
Ilya Yatsishin
28c7a22428 address review comments 2022-10-11 11:59:48 +02:00
Antonio Andelic
5e6a7c1678 Use multiread where possible 2022-10-11 09:27:46 +00:00
Kseniia Sumarokova
3819a21033
Merge pull request #42078 from azat/insert-progress
Fix progress for INSERT SELECT
2022-10-11 10:56:20 +02:00
Alexey Milovidov
56e59dd536
Merge branch 'master' into fix-projections 2022-10-11 02:24:12 +03:00
Alexander Tokmakov
4b371bd20c fix 2022-10-10 16:38:35 +02:00
Alexander Tokmakov
fa1134f299 Merge branch 'master' into fix_loading_dependencies 2022-10-10 16:30:52 +02:00
Ilya Yatsishin
95c5c8a744 Fail fast on empty URL 2022-10-10 14:50:09 +02:00
alesapin
f6b0dc168d Disable concurrent parts removal 2022-10-10 14:10:04 +02:00
Yakov Olkhovskiy
b5808a3f00
Merge branch 'master' into composable-protocol 2022-10-10 08:07:48 -04:00
Nikolai Kochetov
dac71f445b
Merge pull request #42186 from ClickHouse/igor/distinct_in_order_fix
Fix: DISTINCT in order fails with LOGICAL_ERROR
2022-10-10 09:51:29 +02:00
alesapin
8a2ba6cd81
Add logging during merge tree startup (#42163) 2022-10-10 09:32:13 +02:00
Alexey Milovidov
e27dbf4369
Update MergeTreeDataSelectExecutor.cpp 2022-10-09 18:27:47 +03:00
Maksim Kita
2f5b2d782c
Merge pull request #42063 from kitaisreal/function-name-normalization-header-functions
Function name normalization fix functions header
2022-10-09 14:19:33 +03:00
Alexey Milovidov
cebc38fa6e Fix a bug with projections and aggregate_functions_null_for_empty setting 2022-10-09 05:30:25 +02:00
Yakov Olkhovskiy
b74783455f
Update Settings.h
fix dialect description
2022-10-08 21:57:05 -04:00
Yakov Olkhovskiy
6c8e52eb67
Merge branch 'master' into composable-protocol 2022-10-08 20:33:32 -04:00
Alexey Milovidov
8cd9878c83
Merge pull request #41921 from ucasfl/remove
remove unused code
2022-10-09 03:13:50 +03:00
Alexey Milovidov
9ee6896916
Merge pull request #42002 from ClickHouse/relax-too-many-parts-threshold
Relax "too many parts" threshold
2022-10-08 20:17:01 +03:00
Alexey Milovidov
a9cbdeec24
Merge pull request #42180 from ClickHouse/unique-thread-ids
Make thread ids in the process list and query_log unique to avoid waste
2022-10-08 20:06:02 +03:00
Alexander Tokmakov
bd10a9d2d4
Merge pull request #42168 from ClickHouse/unreachable_macro
Abort instead of `__builtin_unreachable` in debug builds
2022-10-08 19:05:57 +03:00
Alexey Milovidov
9bf5fe728b
Merge pull request #42173 from ClickHouse/remove-temporary-live-view
Remove TEMPORARY LIVE VIEW
2022-10-08 19:05:33 +03:00
FArthur-cmd
2bef2b09de improve test and simplify code 2022-10-08 11:07:46 +00:00
FArthur-cmd
e07a3e1193 add default 2022-10-08 10:33:37 +00:00
Igor Nikonov
f4792c37ef Fix #42185: DISTINCT in order fails with LOGICAL_ERROR
... if first column in sorting key contains function
2022-10-08 10:13:12 +00:00
alesapin
f695b75eef
Merge pull request #42147 from ClickHouse/more_logs_for_parent_parts
Fix checking parent for old-format parts
2022-10-08 12:08:15 +02:00
Ilya Yatsishin
f764f4ce19
Update src/Client/QueryFuzzer.cpp 2022-10-08 08:20:17 +02:00
Alexey Milovidov
2f83d87905 Make thread_ids unique 2022-10-08 02:42:41 +02:00
Alexey Milovidov
ec5a32f534 Make thread_ids unique 2022-10-08 02:05:36 +02:00
Alexey Milovidov
36df8cf785
Merge pull request #42144 from kssenii/fix-non-async-buffer
Follow up for #42129
2022-10-08 01:54:38 +03:00
Alexey Milovidov
e4ac4a29a9 Fix error 2022-10-08 00:24:51 +02:00
Alexey Milovidov
a45f7c3023 Relax "too many parts" thresholds 2022-10-08 00:24:51 +02:00
Alexey Milovidov
169c505603 Relax "too many parts" thresholds 2022-10-08 00:24:51 +02:00
Vitaly Baranov
69ebf12dab
Merge pull request #42146 from azat/backups/metadata-overflow-fix
Fix reusing of files > 4GB from base backup
2022-10-08 00:22:28 +02:00
Alexey Milovidov
b9159db82f Remove temporary live views 2022-10-08 00:16:36 +02:00
Alexander Tokmakov
4175f8cde6 abort instead of __builtin_unreachable in debug builds 2022-10-07 21:49:08 +02:00
Maksim Kita
53b655bfa9
Merge pull request #42123 from kitaisreal/jit-compilation-migration-to-llvm-15
JIT compilation migration to LLVM 15
2022-10-07 22:02:19 +03:00
Nikolai Kochetov
eccee280a2
Merge pull request #42136 from ClickHouse/revert-27787
Revert #27787
2022-10-07 20:38:38 +02:00
Alexander Tokmakov
1a78e8a817 fix 2022-10-07 20:22:03 +02:00
Alexander Tokmakov
a1ff835894 fix 2022-10-07 19:52:34 +02:00
Alexander Tokmakov
014784a9ca Merge branch 'master' into fix_loading_dependencies 2022-10-07 18:58:11 +02:00
Sergei Trifonov
a313aa4ede
Merge pull request #41908 from AlfVII/remove-table-is-dropped-exception-when-not-needed
Don't report TABLE_IS_DROPPED exception in order to skip table in case is was just dropped
2022-10-07 18:40:08 +02:00
Maksim Kita
930bda9c72
Merge branch 'master' into jit-compilation-migration-to-llvm-15 2022-10-07 18:45:53 +03:00
Alexander Tokmakov
ed76584876 fix 2022-10-07 16:52:04 +02:00
Alexander Tokmakov
ec2bca51ca Merge branch 'master' into improve_replica_recovery 2022-10-07 16:35:57 +02:00
Alexander Tokmakov
b8d9066004 Revert "Resurrect parallel distributed insert select with s3Cluster (#41535)"
This reverts commit 860e34e760.
2022-10-07 15:53:30 +02:00
Vitaly Baranov
26b2db2c94
Merge pull request #42073 from BoloniniD/BLAKE3_fixes
Minor fixes for BLAKE3
2022-10-07 15:00:13 +02:00
Azat Khuzhin
dae8d6b316 Convert backup version from UInt64 to int
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:59:38 +02:00
Azat Khuzhin
94566abda9 Fix reusing of files > 4GB from base backup
Previosly u64 numbers was truncated to u32 numbers during writing to the
mdatadata xml file, and further incremental backup cannot reuse them,
since the file in base backup is smaller.

P.S. There can be other places, I thought about enabling
-Wshorten-64-to-32, but there are lots of warnings right now.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:56:09 +02:00
alesapin
f1d93d52d1 Fix checking parent for old-format parts 2022-10-07 14:49:25 +02:00
Yatsishin Ilya
e1859e9ee8 fix style 2022-10-07 12:43:20 +00:00
Azat Khuzhin
2c84ad30ba Fix double "file" in "Writing backup for file" message
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-07 14:27:11 +02:00
Yatsishin Ilya
f545aa1415 Merge remote-tracking branch 'origin/master' into ast-fuzzer-where 2022-10-07 12:12:27 +00:00
Yatsishin Ilya
81aec3c340 Grouping sets, rollup, cube, totals can be only with GROUP BY 2022-10-07 11:39:47 +00:00
kssenii
53d54ae6c9 Fix 2022-10-07 12:26:54 +02:00
Kseniia Sumarokova
eb6e60753d
Merge pull request #42129 from kssenii/fix-non-async-buffer
Fix buffer resize with `remote_filesystem_read_method=read` + fs cache
2022-10-07 12:05:53 +02:00
Maksim Kita
76d6204f99 JIT compilation migration to LLVM 15 2022-10-07 10:53:38 +02:00
Yakov Olkhovskiy
2229087896
Merge branch 'master' into composable-protocol 2022-10-07 02:23:26 -04:00
Yakov Olkhovskiy
997fa5e295 review suggestions 2022-10-07 01:16:22 +00:00
Alexander Tokmakov
bb78bf1c70 improve replica recovery 2022-10-06 21:09:12 +02:00
BoloniniD
d188601881 Fix style 2022-10-06 21:41:26 +03:00
Nikolai Kochetov
c1cc04d44d Revert #27787 2022-10-06 20:27:55 +02:00
Azat Khuzhin
20dbf5eb34 Fix possible timeout exception for distributed queries with use_hedged_requests=0
In case of possible EINTR (i.e. query profiler) it is possible for
select() from getReplicaForReading() (this is the stage when the
initiator is waiting for Cancel packet from the remote shards, that can
be sent in case of enough rows was read, or the query had been cancelled
explicitly) to return without any sockets ready, and
getReplicaForReading() will assume that the timeout happened.

Here is a stacktrace example:

    [ 59205 ] {04f3d3a4-7346-4ef2-bf57-928f9e55ed89} <Error> TCPHandler: Code: 159. DB::Exception: Received from b8:9000. DB::Exception: Timeout (-1000 ms) exceeded while reading from . Stack trace:

    0. Poco::Exception::Exception() @ 0x17e26eac in /usr/bin/clickhouse
    1. DB::Exception::Exception() @ 0xb550b9a in /usr/bin/clickhouse
    2. DB::Exception::Exception<>() @ 0x15ad1c81 in /usr/bin/clickhouse
    3. DB::MultiplexedConnections::getReplicaForReading(bool) @ 0x15ad16fc in /usr/bin/clickhouse
    4. DB::MultiplexedConnections::receivePacketUnlocked() @ 0x15ad02fd in /usr/bin/clickhouse
    5. DB::MultiplexedConnections::drain() @ 0x15ad0df8 in /usr/bin/clickhouse
    6. DB::ConnectionCollector::drainConnections(DB::IConnections&, bool) @ 0x1443c205 in /usr/bin/clickhouse
    7. DB::RemoteQueryExecutor::finish() @ 0x1445ea6a in /usr/bin/clickhouse

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-06 18:20:33 +02:00
Azat Khuzhin
4f268cb414 Fix exception message on timeout (host was missing)
Previously before the exception there is a loop for disconnecting, so
dumpAddress* will not return anything, fix this, by saving the
addresses before.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-06 18:14:53 +02:00
kssenii
2d96c81f4c Fix 2022-10-06 17:09:20 +02:00
Nikolay Degterinsky
16a8145deb
Merge pull request #42046 from evillique/fix-bz2-decoding
Fix bzip2 decoding issue
2022-10-06 16:02:09 +02:00
alesapin
3373480ede
Merge pull request #42036 from ClickHouse/fix_one_more_no_such_key
Fix No such key during table drop
2022-10-06 14:50:02 +02:00
ltrk2
696a294ef3 Add null pointer checks 2022-10-06 05:48:04 -07:00
Robert Schulze
cc24fcd6d5
Merge pull request #41873 from ClickHouse/generated-file-cleanup
Consolidate CMake-generated config headers
2022-10-06 14:31:03 +02:00
Raúl Marín
adbaaca2f5
QOL log improvements (#41947)
* Uniformize disk reservation logs

* Remove log about destroying stuff that appears all the time

* More tweaks on disk reservation logs

* Reorder logs in hash join

* Remove log that provides little information

* Collapse part removal logs

Co-authored-by: Sergei Trifonov <sergei@clickhouse.com>
2022-10-06 14:22:44 +02:00
Robert Schulze
78be400ac0
Merge remote-tracking branch 'origin/master' into generated-file-cleanup 2022-10-06 12:22:43 +00:00
Nikolay Degterinsky
54ec6a5047
Merge pull request #42071 from evillique/new-http-compression-methods
Add new HTTP compression methods
2022-10-06 14:21:39 +02:00
Nikita Mikhaylov
860e34e760
Resurrect parallel distributed insert select with s3Cluster (#41535) 2022-10-06 13:47:32 +02:00
Anton Popov
80ebbfbc56
Merge pull request #42066 from CurtizJ/fix-fuzzer-3
Fix crash in `SummingMergeTree` with `LowCardinality`
2022-10-06 13:46:26 +02:00
Nikita Mikhaylov
766107df0a
Fixed the restriction on maximum size of replicated fetches (#42090) 2022-10-06 13:18:46 +02:00
Anton Popov
aabec50988
Merge pull request #42040 from CurtizJ/async-inserts-log
Add system table `asynchronous_insert_log`
2022-10-06 13:14:41 +02:00
alesapin
adb34f6eae
Merge branch 'master' into fix_one_more_no_such_key 2022-10-06 12:42:16 +02:00
alesapin
6d24e16fda
Merge pull request #42067 from ClickHouse/fix_drop_of_completely_dropped_table
Fix drop of completely dropped table
2022-10-06 12:40:38 +02:00
Maksim Kita
6ad435d034
Merge branch 'master' into function-name-normalization-header-functions 2022-10-06 13:29:21 +03:00
Kseniia Sumarokova
3cff776109
Merge pull request #41254 from filimonov/system_disks_unreserved_space
Add unreserved_space column to system.disks
2022-10-06 12:28:23 +02:00
Maksim Kita
0df77a6df7
Merge pull request #42065 from ucasfl/minor
remove unused virtual keyword
2022-10-06 13:26:37 +03:00
Vladimir C
97fb381255
Merge pull request #41813 from zhongyuankai/fix_dist_msg 2022-10-06 11:19:56 +02:00
Vladimir C
3f24c904ad
Merge pull request #41842 from amosbird/index_analysis_1 2022-10-06 11:14:21 +02:00
Vladimir C
0513824fa2
Merge pull request #42049 from ucasfl/parse-date 2022-10-06 11:11:42 +02:00
Robert Schulze
da5a2e2db0
Merge remote-tracking branch 'origin/master' into generated-file-cleanup
Physical merge conflicts:
- src/Common/ZooKeeper/ZooKeeperImpl.cpp
- src/Core/config_core.h.in
- src/Functions/FunctionsAES.h
- src/Functions/config_functions.h.in
- src/configure_config.cmake

Logical merge conflicts:
- Functions/tryDecrypt.cpp
2022-10-06 08:43:25 +00:00
Robert Schulze
a5590d6685
Merge pull request #42084 from arenadata/ADQM-599-B
Improve work of date time functions like toLastDayOfMonth on range boundaries
2022-10-06 10:32:17 +02:00
Anton Popov
190e1f6830
Merge branch 'master' into async-inserts-log 2022-10-06 01:59:27 +02:00
BoloniniD
87f06bbe0b Fix [[noreturn]] function variant 2022-10-05 23:38:44 +03:00
Alexander Tokmakov
d682c2ccdb fix 2022-10-05 22:13:16 +02:00
Alexey Milovidov
aa9e8f1cde
Merge branch 'master' into new-http-compression-methods 2022-10-05 23:07:01 +03:00
Alexey Milovidov
25d13b89e9
Merge pull request #41142 from MeenaRenganathan22/OpenSSL_InHouse
Changes to support the OpenSSL In-house build.
2022-10-05 23:02:04 +03:00
Alexander Tokmakov
690ec74bf2 better handling for expressions in dictGet 2022-10-05 20:58:27 +02:00
Alexander Tokmakov
25df3efca5 check dependencies before table shutdown 2022-10-05 20:57:55 +02:00
alesapin
1541d68607 Better exception 2022-10-05 20:40:35 +02:00
alesapin
4ed522d2a0 Fix 2022-10-05 20:36:55 +02:00
alesapin
cf145910e3 Revert first fix 2022-10-05 20:34:48 +02:00
alesapin
644376aa2c Better fix 2022-10-05 20:32:43 +02:00
Vladimir C
d63a1fde05
Merge pull request #40630 from ClickHouse/vdimir/explain-table-function 2022-10-05 19:52:02 +02:00
Azat Khuzhin
5166a1d58e Fix written_bytes/written_rows in INSERT SELECT intermediate progress packets
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-05 19:12:18 +02:00
Azat Khuzhin
3efd941233 Fix final progress for INSERT SELECT over TCP
Move sending of progress and profile events after calling
BlockIO::onFinish() since it will call on_finish callback, that will do
the final flush of progress (at least WriteProgress).

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-10-05 19:12:18 +02:00
Anton Popov
f7cf35d1dd
Merge pull request #42072 from CurtizJ/fix-fuzzer-4
Fix assertion in bloom filter index
2022-10-05 16:38:13 +02:00
Kseniia Sumarokova
db5642b509
Merge pull request #42041 from kssenii/better-azure-write
Rewrite inefficient write to AzureBlobStorage
2022-10-05 16:34:13 +02:00
Roman Vasin
4ab9c15048 Add ToExtendedRelativeDayNumImpl 2022-10-05 14:19:32 +00:00
alesapin
e6fe71b385
Update src/Storages/StorageReplicatedMergeTree.cpp
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2022-10-05 16:12:08 +02:00
alesapin
63be310441
Update src/Storages/StorageReplicatedMergeTree.cpp
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
2022-10-05 16:12:03 +02:00
Anton Popov
f61e98f0e8
Merge pull request #40668 from ClickHouse/async-insert-max-data-size-fix
Use settings from query context for async INSERTs
2022-10-05 15:15:19 +02:00
Roman Vasin
eb37b0f5b9 Merge branch 'master' of github.com:ClickHouse/ClickHouse into date_diff 2022-10-05 13:15:06 +00:00
Anton Popov
02cdc20d5d
Merge pull request #40096 from CurtizJ/fuzz-table-definitions
Add fuzzer for table definitions
2022-10-05 14:53:48 +02:00
Roman Vasin
b54fb83cc5
Merge branch 'master' into ADQM-599-B 2022-10-05 15:50:38 +03:00
Yatsishin Ilya
533b813c8e better 2022-10-05 12:42:45 +00:00
Yatsishin Ilya
f3a74f0169 Added fuzzer for WHERE and more cases in GROUP BY 2022-10-05 12:42:45 +00:00
Nikolay Degterinsky
aa332d8f5d Fix build 2022-10-05 08:11:04 +00:00
Nikolay Degterinsky
85e4311127
Merge pull request #42020 from canhld94/ch_canh_fix_rankcorr
Fix rankCorr size overflow
2022-10-05 09:19:57 +02:00
Nikolay Degterinsky
980600dc2f
Merge pull request #41206 from canhld94/ch_canh_fix_decrypt_with_null
Add function tryDecrypt that returns NULL when decrypt fail
2022-10-05 09:13:36 +02:00
Nikolay Degterinsky
2a4f2bff9b Better order of compression methods 2022-10-05 00:48:01 +00:00
Anton Popov
e9928fd703 fix clang-tidy 2022-10-04 23:50:14 +00:00
BoloniniD
9dd15998c7 Print nicer exception if BLAKE3 is unavailable 2022-10-05 00:11:41 +03:00
Anton Popov
2f423071f2 fix assertion in bloom filter index 2022-10-04 19:27:56 +00:00
Nikolay Degterinsky
f7e0e497da Add methods to the tests 2022-10-04 19:04:03 +00:00
Nikita Mikhaylov
2933a28a5d
Add log message and lower the retry timeout in MergeTreeRestartingThread (#42026) 2022-10-04 20:07:11 +02:00
alesapin
425b296928 Revert "Revert "Merge pull request #41832 from ClickHouse/make_copy_instead_of_hardlink""
This reverts commit f50d46fb8c.
2022-10-04 17:40:23 +02:00
alesapin
6f185333ff Fix drop completely dropped table one more time 2022-10-04 17:39:28 +02:00
Anton Popov
fe90919f10 fix crash in SummingMergeTree with LowCardinality 2022-10-04 15:33:38 +00:00
flynn
772aec360b remove unused virtual keyword 2022-10-04 15:33:29 +00:00
alesapin
f50d46fb8c Revert "Merge pull request #41832 from ClickHouse/make_copy_instead_of_hardlink"
This reverts commit 0097f15ee7, reversing
changes made to 4e422b8046.
2022-10-04 17:33:01 +02:00
alesapin
2bfae244cc Add comments 2022-10-04 17:30:25 +02:00
Maksim Kita
f4101861e7 Function name normalization fix functions header 2022-10-04 17:29:33 +02:00
Kseniia Sumarokova
fc301e8f2d
Merge pull request #42034 from kssenii/fix-azure-write
Fix write into AzureBlobStorage
2022-10-04 17:25:41 +02:00
Anton Popov
121ef74b17 slightly better 2022-10-04 14:19:05 +00:00
flynn
e30297e599 fix and update test 2022-10-04 13:36:28 +00:00
alesapin
4a6fa10e71
Merge branch 'master' into fix_one_more_no_such_key 2022-10-04 15:19:05 +02:00
Anton Popov
9a2cabd3a1
Merge branch 'master' into async-inserts-log 2022-10-04 15:10:50 +02:00
Anton Popov
8ca73eab03
Merge branch 'master' into fuzz-table-definitions 2022-10-04 15:10:31 +02:00
Anton Popov
13b4d5f7dc fix build 2022-10-04 12:54:27 +00:00
Robert Schulze
8864f135c4
Merge branch 'master' into fix-todatetime64 2022-10-04 14:11:45 +02:00
Anton Popov
59605a6c7e
Apply suggestions from code review
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2022-10-04 13:40:59 +02:00
Nikita Mikhaylov
d767e1f0d8
Added an option to specify environment name in Sentry's config (#42037) 2022-10-04 13:23:51 +02:00
flynn
86cb9f7034 parseDataTimeBestEffort support comma between date and time 2022-10-04 09:52:20 +00:00
Kseniia Sumarokova
6d02fa3c5f
Merge pull request #42022 from kssenii/better-exception-merge-tree-data-load-parts
More detailed exception message
2022-10-04 11:20:35 +02:00
Roman Vasin
4a5c3e5a6e Fix toLastDayOfMonth and other functions 2022-10-04 09:09:59 +00:00
Duc Canh Le
cd968ce43d fix register function 2022-10-04 14:56:46 +08:00
Robert Schulze
1cbceb6611
Merge pull request #42014 from ClickHouse/drop-libexecinfo-leftovers
Drop leftovers of libexecinfo
2022-10-04 08:51:17 +02:00
Duc Canh Le
a886804cbf Merge branch 'master' into ch_canh_fix_decrypt_with_null 2022-10-04 13:20:29 +08:00
Nikolay Degterinsky
99dc396c77 Add new HTTP compression methods 2022-10-04 03:13:46 +00:00
Nikolay Degterinsky
b73b5375a7 Fix bz2 decoding 2022-10-04 00:10:04 +00:00
zvonand
087a0e939b fix date csv parsing 2022-10-04 01:38:54 +03:00
Anton Popov
148995894f add system table asynchronous_inserts_log 2022-10-03 21:35:55 +00:00
alesapin
210882b9c4 Better fix 2022-10-03 23:30:50 +02:00
kssenii
2ab884359e More efficient WriteBufferFromAzureBlobStorage 2022-10-03 22:15:04 +02:00
Robert Schulze
011748e431
Merge pull request #41950 from ClibMouse/fix-split-build-configuration
Fix linker error
2022-10-03 21:32:22 +02:00
Yakov Olkhovskiy
0edae06d2e
Merge pull request #41792 from FrankChen021/cors
Fix a bug that CORS headers are missing in some HTTP responses
2022-10-03 14:50:10 -04:00
Nikolay Degterinsky
58d644441f
Merge branch 'master' into ch_canh_fix_rankcorr 2022-10-03 20:19:01 +02:00
Robert Schulze
385be7f528
Fix tests 2022-10-03 18:05:16 +00:00
Sergei Trifonov
4b4fae5bb1
Merge branch 'master' into remove-table-is-dropped-exception-when-not-needed 2022-10-03 19:52:08 +02:00
Vladimir C
fa254bcec3 Fix clang-tidy in TableFunctionExplain.cpp 2022-10-03 19:14:40 +02:00
vdimir
06f504c166 doc viewExplain 2022-10-03 19:14:40 +02:00
vdimir
3fdea908ff Use ASTExplain in viewExplain 2022-10-03 19:14:40 +02:00
vdimir
6028643e04 Add function viewExplain 2022-10-03 19:14:40 +02:00
alesapin
71e1b1df73 add comment 2022-10-03 19:09:24 +02:00
alesapin
3114ddcad2 Fix failure during table drop 2022-10-03 19:06:12 +02:00
kssenii
c6d7cd5820 Fix write into azure blob storage 2022-10-03 18:54:07 +02:00
Robert Schulze
ff2cbff4a1
Check boundaries similar to integer handling 2022-10-03 15:50:26 +00:00
ltrk2
ab609cfbd4 Fix linker error 2022-10-03 10:45:10 -04:00
Alexey Milovidov
c8872fe96d
Merge pull request #42001 from ClickHouse/part-thresholds-override-more-sane
More sane behavior of part number thresholds override in query level settings
2022-10-03 17:25:39 +03:00
Robert Schulze
123afbca80
Fix toDateTime64() for negative floats
Resolves #41686
2022-10-03 13:33:12 +00:00
Vitaly Baranov
65c61877c7
Merge pull request #33435 from BoloniniD/BLAKE3
Integrating Rust code into ClickHouse
2022-10-03 15:25:06 +02:00
Roman Vasin
dab5e80c81 Add support of Date32 arguments 2022-10-03 13:15:32 +00:00
flynn
ea06e20cae remove unused code 2022-10-03 21:03:41 +08:00
Anton Popov
2054582a06
Merge pull request #41960 from ucasfl/insert-from-optimize
optimize insertFrom of ColumnAggregateFunction to share Aggregate State in some cases
2022-10-03 14:57:39 +02:00
Kseniia Sumarokova
0bfbb5c38a
Merge branch 'master' into system_disks_unreserved_space 2022-10-03 14:25:47 +02:00
kssenii
0dc71e9883 More detailed exception message 2022-10-03 14:21:53 +02:00
Duc Canh Le
369f084070
Update src/AggregateFunctions/AggregateFunctionRankCorrelation.h
Co-authored-by: Nikolay Degterinsky <43110995+evillique@users.noreply.github.com>
2022-10-03 20:15:31 +08:00
Duc Canh Le
fad6af40cd
Merge branch 'master' into ch_canh_fix_rankcorr 2022-10-03 19:57:51 +08:00
Duc Canh Le
34f598e09b fix rankcorr size overflow 2022-10-03 19:55:37 +08:00
Alexander Tokmakov
00914a174d
Merge pull request #41410 from ClickHouse/keeper-multiread
Add MultiRead support in Keeper and internal ZK client
2022-10-03 14:17:57 +03:00
Nikolai Kochetov
dcfb8a1131
Merge pull request #41949 from ClickHouse/improvement-from-38083
Earlier throw exception in PullingAsyncPipelineExecutor.
2022-10-03 13:05:58 +02:00
Duc Canh Le
528591245f Fix register name 2022-10-03 18:46:20 +08:00
Robert Schulze
aa9373c9c2
Merge pull request #41951 from ClickHouse/llvm-14
Bump LLVM from 13 to 14
2022-10-03 12:34:31 +02:00
Alexander Tokmakov
a2c29076d6 avoid detached broken part duplicates 2022-10-03 12:27:17 +02:00
Alexander Tokmakov
3f9c9c9a77 fix intersecting part if session expired during queue initialization 2022-10-03 12:27:17 +02:00
Alexander Tokmakov
7b5b7e4963
Merge pull request #41945 from ClickHouse/enable_more_s3_tests
Enable some disabled S3 tests
2022-10-03 13:25:50 +03:00
Duc Canh Le
acfc0cf0ab add doc for tryDecrypt 2022-10-03 18:06:54 +08:00
Duc Canh Le
fbb9b3f5ab Merge branch 'master' into ch_canh_fix_decrypt_with_null 2022-10-03 17:56:06 +08:00
Robert Schulze
919b4e2349
Drop leftovers of libexecinfo
- libexecinfo was perhaps used in the past but today it is unused
2022-10-03 08:51:28 +00:00
Robert Schulze
db5ef7b3cb
Merge branch 'master' into generated-file-cleanup 2022-10-02 23:13:18 +02:00
Robert Schulze
d726ca3212
Refactoring: Un-inline some error handling methods 2022-10-02 19:52:40 +00:00
Robert Schulze
5b1a7755d8
Fix typos 2022-10-02 21:38:46 +02:00
Robert Schulze
8e727d4fbc
Merge pull request #41910 from arenadata/ADQM-583
Improve enable_extended_results_for_datetime_functions option to return results of type DateTime64
2022-10-02 20:46:51 +02:00
Robert Schulze
fe2dde0c89
Merge pull request #41702 from ClibMouse/resolve-findings-from-clang-tidy
Resolve findings from clang-tidy
2022-10-02 20:36:24 +02:00
BoloniniD
3a3ca51980 Fixes after review 2022-10-02 20:52:05 +03:00
Alexey Milovidov
0d1d177013
Merge pull request #41131 from JackyWoo/add_function_java_int_hash
Support Java integers hashing in `javaHash`
2022-10-02 18:10:51 +03:00
Alexey Milovidov
c5586f7644
Merge pull request #42004 from ClickHouse/remove-useless-code-3
Remove useless code
2022-10-02 17:01:06 +03:00
Alexey Milovidov
69eae01ce6
Merge branch 'master' into part-thresholds-override-more-sane 2022-10-02 16:59:51 +03:00
Vitaly Baranov
baf48ec400
Merge pull request #41562 from vitlibar/refactor-wiping-info-from-logs
Refactor wiping sensitive information from logs.
2022-10-02 12:58:58 +02:00
Duc Canh Le
99bf356220
Merge branch 'master' into ch_canh_fix_decrypt_with_null 2022-10-02 14:35:42 +08:00
Alexey Milovidov
90b9afab21 Remove useless code 2022-10-02 01:50:36 +02:00
Alexey Milovidov
daab7f7f61
Merge pull request #41987 from ClickHouse/musl-4
Preparation for Musl build, part 4
2022-10-02 02:35:01 +03:00
Alexey Milovidov
0da9ed8a18
Merge branch 'master' into part-thresholds-override-more-sane 2022-10-02 02:26:21 +03:00
Alexander Tokmakov
e40917a9c5 fix 2022-10-02 00:44:46 +02:00
Alexey Milovidov
bd277348ca
Merge pull request #41984 from ClickHouse/vdimir/followup-40893
Rename max_temp_data_on_disk -> max_temporary_data_on_disk
2022-10-01 23:45:49 +03:00
Alexey Milovidov
7b71524109 More sane behavior of part number thresholds override in query level settings 2022-10-01 20:18:12 +02:00
Alexey Milovidov
0e3b9bf3ff Add more checkStackSize calls 2022-10-01 17:48:56 +02:00
Vitaly Baranov
a5b2a49ab1 Refactor wiping sensitive information from logs. 2022-10-01 17:17:45 +02:00
Alexey Milovidov
25b75a6982
Merge pull request #41983 from amosbird/issue_9338
Support countState(*)
2022-10-01 17:34:42 +03:00
Vitaly Baranov
feece38912
Merge pull request #41852 from vitlibar/fix-parallel-parsing-with-max-rows
Fix parallel parsing: segmentator now checks max_block_size.
2022-10-01 15:33:39 +02:00
Vitaly Baranov
c16ae1b916
Merge pull request #41980 from vitlibar/remove-warning-when-perform-ttl-move-on-insert-false
Remove confusing warning when perform_ttl_move_on_insert is false
2022-10-01 15:32:34 +02:00
Kseniia Sumarokova
59596e9067
Merge pull request #41970 from kssenii/fix-use-env-credentials-s3
Fix use_environment_credentials for s3 table function
2022-10-01 13:54:58 +02:00
vdimir
498ba33160
Rename max_temp_data_on_disk -> max_temporary_data_on_disk 2022-10-01 08:51:33 +00:00
Amos Bird
98fc22b08e
Support countState(*) 2022-10-01 14:59:26 +08:00
root
7e4edfeb5a Merge branch 'master' of https://github.com/MeenaRenganathan22/ClickHouse into OpenSSL_InHouse 2022-09-30 15:50:46 -07:00
root
4318ec125e Merge branch 'master' of https://github.com/MeenaRenganathan22/ClickHouse into OpenSSL_InHouse 2022-09-30 15:50:22 -07:00
Vitaly Baranov
f65d3ff95a Fix parallel parsing: segmentator now checks max_block_size. 2022-09-30 22:34:03 +02:00
Vitaly Baranov
7be9744bab Remove confusing warning when inserting with perform_ttl_move_on_insert=false. 2022-09-30 20:51:48 +02:00
root
bb1771e159 Update the macro ENABLE_CH_BUNDLE_BORINGSSLL to ENABLE_EXTERNAL_OPENSSL 2022-09-30 10:35:49 -07:00
ltrk2
0505040e50 Resolve finding from clang-tidy 2022-09-30 10:31:44 -07:00
alesapin
00bf90186a Better 2022-09-30 19:03:54 +02:00
alesapin
350ff96628 Fix potential race condition with broken parts 2022-09-30 19:01:06 +02:00
BoloniniD
fe7b2fdf6e
Merge branch 'master' into BLAKE3 2022-09-30 18:51:31 +03:00
Anton Popov
9916e35b3f
Merge pull request #41701 from CurtizJ/fix-monotonic-order-by
Fix `ORDER BY` monotonic functions
2022-09-30 17:32:37 +02:00
Nikolay Degterinsky
4423f624ef
Merge pull request #41755 from evillique/set-query-params-formatting
Fix SET query parameters formatting
2022-09-30 17:14:01 +02:00
Nikolay Degterinsky
09489412f2
Merge pull request #41862 from evillique/fix-union
Add default UNION/EXCEPT/INTERSECT to the echo query text
2022-09-30 17:06:44 +02:00
Anton Popov
a3009ed9e4 fix clang-tidy 2022-09-30 13:54:05 +00:00
Robert Schulze
5273280ba4
Fix build 2022-09-30 12:36:22 +00:00
kssenii
fb3bcd2fe9 Fix use_environment_credentials 2022-09-30 12:25:39 +02:00
flynn
d666951cb1 optimize insertFrom of ColumnAggregateFunction to share Aggregate State in some cases 2022-09-30 18:04:51 +08:00
Vladimir C
895afdec45
Merge pull request #40893 from ClickHouse/vdimir/track-tmp-disk 2022-09-30 11:27:24 +02:00
Robert Schulze
4ac308a7a6
Update submodule + fix compile error 2022-09-30 09:23:41 +00:00
Robert Schulze
cc92a2d174
Merge branch 'master' into generated-file-cleanup 2022-09-30 09:56:31 +02:00
Roman Vasin
f716fc2fe5 Put list of functions in correct order in docs; Use new formatting in exception messages. 2022-09-30 07:54:35 +00:00
Nikolay Degterinsky
9f5276f839
Merge branch 'master' into fix-union 2022-09-29 23:16:22 +02:00
Nikolay Degterinsky
3de6d76356
Merge branch 'master' into set-query-params-formatting 2022-09-29 23:15:03 +02:00
BoloniniD
55c79230b3 Merge branch 'master' of github.com:ClickHouse/ClickHouse into BLAKE3 2022-09-29 23:53:25 +03:00
Robert Schulze
f38d71aac9
Fix includes 2022-09-29 20:34:21 +00:00
Nikolai Kochetov
8f9e6dd03a Earlier throw exception in PullingAsyncPipelineExecutor. 2022-09-29 18:07:43 +00:00
Alexander Tokmakov
ec2bd5701a
Merge branch 'master' into replicated-database-fix-2 2022-09-29 21:04:21 +03:00
Robert Schulze
5dcdf60f68
Merge pull request #41762 from ClickHouse/bump-llvm-to-13
Bump LLVM from 12 to 13
2022-09-29 19:37:46 +02:00
Roman Vasin
45414b251d Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-583 2022-09-29 17:02:49 +00:00
Maksim Kita
f5a8acaa4a
Merge pull request #41870 from jiebinn/compare_with_empty_string
FunctionsComparison: optimize the string_vector_constant when empty string constant
2022-09-29 19:30:02 +03:00
Roman Vasin
c6fda60f32 Cleanup code 2022-09-29 15:45:49 +00:00
Roman Vasin
02e08fa301 Use another approach for timeSlot() 2022-09-29 15:44:56 +00:00
alesapin
0097f15ee7
Merge pull request #41832 from ClickHouse/make_copy_instead_of_hardlink
Use copy for some operations instead of hardlinks
2022-09-29 17:12:08 +02:00
Alexander Tokmakov
4e422b8046
Merge pull request #41741 from ClickHouse/fix_intersecting_parts
Fix intersecting parts
2022-09-29 18:00:22 +03:00
Roman Vasin
e0099d52de Use C++20 format() syntax for exceptions 2022-09-29 14:07:02 +00:00
Nikolai Kochetov
8e23bee03c
Merge pull request #41650 from ClickHouse/keep-destruction-order-of-view-thread-statuses
Fix a destruction order for views ThreadStatus
2022-09-29 14:28:14 +02:00
Amos Bird
44eaa9583b
Merge branch 'master' into index_analysis_1 2022-09-29 20:25:03 +08:00
JackyWoo
c70d687cfb fix build error 2022-09-29 19:56:50 +08:00
Nikita Mikhaylov
afe6c99e7d
Update DatabaseReplicated.cpp 2022-09-29 13:23:14 +02:00
Roman Vasin
53b34c7e0a Put enable_extended_results_for_datetime_functions into private; correct if/else braces 2022-09-29 11:04:13 +00:00
Nikita Mikhaylov
ab97c60118 Done 2022-09-29 11:00:23 +00:00
Kseniia Sumarokova
0222abae21
Merge pull request #41884 from ClickHouse/kssenii-patch-5
Update CachedOnDiskReadBufferFromFile.cpp
2022-09-29 12:42:25 +02:00
Antonio Andelic
94f1fe39bb Add support for exists in multiread 2022-09-29 10:39:33 +00:00
Robert Schulze
6381631836
Merge pull request #41824 from ClickHouse/tryBase58
Add function tryBase58Decode()
2022-09-29 12:38:58 +02:00
Antonio Andelic
0056eebb08 Cleanup 2022-09-29 10:10:49 +00:00
vdimir
f495361e28
fixes for TemporaryDataOnDisk 2022-09-29 10:09:29 +00:00
vdimir
14cd2b632c
fix Context::shutdown 2022-09-29 09:51:49 +00:00
vdimir
1234b70118
Handle decorator checking tmp disk type 2022-09-29 09:51:49 +00:00
vdimir
0605f6ed7f
fix after rebase 2022-09-29 09:51:48 +00:00
vdimir
cb4397d1ed
Create reader only after the TemporaryDataOnDisk::read 2022-09-29 09:51:48 +00:00
vdimir
6f8e8b979d
Revert "wip"
This reverts commit 46e4f0236df9a6f7b03d40278e583bc93b96559a.
2022-09-29 09:51:47 +00:00
vdimir
74d45325b3
wip 2022-09-29 09:51:46 +00:00
vdimir
0f1a7c252d
better TemporaryDataOnDisk 2022-09-29 09:51:46 +00:00
Vladimir C
dd20fa37f5
Fix typos 2022-09-29 09:51:45 +00:00
vdimir
9f3f34548c
Allow to create temporaty streams on leaf TemporaryDataOnDisk 2022-09-29 09:51:45 +00:00
vdimir
efe0f99658
Fix reading block info in NativeReader with header in ctor 2022-09-29 09:51:44 +00:00
vdimir
858769584f
Fix MergeSortingTransform 2022-09-29 09:51:43 +00:00
vdimir
0093752271
Upd log message 2022-09-29 09:51:43 +00:00
vdimir
a56a10f089
Do not require tmp_data in Aggregator 2022-09-29 09:51:42 +00:00
vdimir
15c7a3be34
Temp data on disk: build 2022-09-29 09:51:41 +00:00
vdimir
c0898ce289
Use abstraction for temporary data on disk in Sort and Aggregation 2022-09-29 09:51:41 +00:00
vdimir
ac39bbb3f1
[wip] Common interface for temporary data on disk 2022-09-29 09:51:40 +00:00
vdimir
367c77f0fb
Check if tmp volume contains only local disks 2022-09-29 09:51:39 +00:00
Roman Vasin
22ccce6946 Remove WithContext; Rename execute_extended_result to executeExtendedResult 2022-09-29 09:29:07 +00:00
Antonio Andelic
fcc54104a4 Define methods for multi read requests 2022-09-29 09:19:47 +00:00
Maksim Kita
3a0ae185bc
Merge branch 'master' into compare_with_empty_string 2022-09-29 11:30:02 +03:00
JackyWoo
5683676b72 throw exception for unsigned types 2022-09-29 15:50:03 +08:00
Antonio Andelic
bcefa6e62a Use chassert 2022-09-29 07:06:18 +00:00
Antonio Andelic
3109ce51c6 Merge branch 'master' into keeper-multiread 2022-09-29 06:50:49 +00:00
Antonio Andelic
349bd7fd9a Dont fail MultiRead on first failed op 2022-09-29 06:50:28 +00:00
Alfonso Martinez
981f2e119f Forgot to add function to header 2022-09-29 08:44:10 +02:00
Yakov Olkhovskiy
5e40f2ebca review suggestions 2022-09-29 00:13:40 +00:00