Nikolay Degterinsky
391e61549d
Fixes
2023-05-30 12:18:56 +00:00
avogar
c87e8c1f23
Fix bitShift* functions with both constant arguments
2023-05-30 12:12:54 +00:00
Robert Schulze
1cbce21968
Better, pt. II
2023-05-30 11:46:23 +00:00
Smita Kulkarni
fe944a55dc
Updated to hold temporary_directory_lock till part is fetched, renamed and committed
2023-05-30 13:30:47 +02:00
Kruglov Pavel
fe82d2bbe2
Fix build
2023-05-30 12:58:37 +02:00
Sema Checherinda
0a128cec61
remove tricky debug trap
2023-05-30 12:28:58 +02:00
Sema Checherinda
2d2b411c26
fix build
2023-05-30 12:26:20 +02:00
Sema Checherinda
0b4ea3e2e1
remove reminder comments
2023-05-30 12:26:20 +02:00
Sema Checherinda
b13990efcc
fix build
2023-05-30 12:26:20 +02:00
Sema Checherinda
13dcb62ffb
fix logs engins
2023-05-30 12:26:20 +02:00
Sema Checherinda
a5dcd8dabb
do not call finalize in d-tor MergedBlockOutputStream::Finalizer
2023-05-30 12:26:20 +02:00
Sema Checherinda
d95e5b51af
mark all finalize calls in buffers d-tors with issue id
2023-05-30 12:26:20 +02:00
Sema Checherinda
99ad481505
fix sizes.log writes
2023-05-30 12:26:20 +02:00
Sema Checherinda
fe3939287b
add test, fix .gin_sid files
2023-05-30 12:26:20 +02:00
Sema Checherinda
0e019c8e83
turn off some d-tor finalize
2023-05-30 12:26:20 +02:00
Sema Checherinda
100b4d0969
cope with finalize in d-tors
2023-05-30 12:26:20 +02:00
Antonio Andelic
bb2acb50d2
Merge pull request #50186 from LiuYangkuan/support_fqdn_in_cluster_discovery
...
support passing fqdn to register cluster node in keeper
2023-05-30 11:54:09 +02:00
Robert Schulze
2d06947522
Better
2023-05-30 09:06:45 +00:00
Robert Schulze
fb6c4f2802
Fix msan issue, pt. II
2023-05-30 08:51:44 +00:00
Val Doroshchuk
ecea1ac090
Fix crash when Pool::Entry::disconnect() is called
...
Many Pool::Entry objects can keep the same pointer to Pool::Connection.
If Pool::Entry::disconnect() is called on one such object,
Pool::removeConnection() is called to remove Pool::Connection from the pool,
where connection->ref_count is cleared and connection->removed_from_pool is set.
Next Pool::Entry::~Entry() calls decrementRefCount() with
1. const auto ref_count = data->ref_count.fetch_sub(1);
where data->ref_count will be negative, since it was cleared
2. checks removed_from_pool and deletes Pool::Connection
but there might be multiple Entry objects still keep pointer to this Pool::Connection
Suggesting not to clear ref_count on disconnect()
and delete Pool::Connection only on the last Pool::Entry is being destroyed.
Fixes ea375ef989
2023-05-30 10:29:49 +02:00
SmitaRKulkarni
f2172ab8dd
Merge pull request #46661 from ClickHouse/42192_Lower_parallel_parsing_threads_with_globs
...
When reading from multiple files displace parallel parsing
2023-05-30 08:53:08 +02:00
Victor Krasnov
6c94632d47
Deprive toStartOfWeek and toLastDayOfWeek functions of in-source documentation
2023-05-29 22:10:34 +00:00
Alexey Milovidov
f97460b453
Merge branch 'master' into nickitat-patch-12
2023-05-30 00:27:56 +03:00
Robert Schulze
aefa9df1ce
Merge branch 'master' into rs/entropy-learned-hashing
2023-05-29 22:20:50 +02:00
Nikolay Degterinsky
e10f951467
Fix IS (NOT) NULL operator priority
2023-05-29 19:11:09 +00:00
Alexey Milovidov
701e2fb6e3
Merge pull request #50242 from ClickHouse/fix-max-parallel-replicas-custom-key
...
Fix `02535_max_parallel_replicas_custom_key`
2023-05-29 21:06:57 +03:00
Alexey Milovidov
3cc9feafc2
Merge pull request #50285 from ucasfl/uniqExactIf
...
Parallel merge of uniqExactIf states
2023-05-29 19:42:44 +03:00
Nikita Taranov
b2921df228
Merge branch 'master' into optimize_reading2
2023-05-29 18:35:53 +02:00
Robert Schulze
516fa1c375
Merge branch 'master' into rs/entropy-learned-hashing
2023-05-29 17:40:14 +02:00
Nikita Taranov
437880d4c1
Enable enable_memory_bound_merging_of_aggregation_results
by default
2023-05-29 15:52:50 +02:00
Nikita Taranov
87d6564b9b
Update gtest_async_loader.cpp
2023-05-29 15:50:06 +02:00
Nikita Taranov
be62c8faba
fix build
2023-05-29 15:27:39 +02:00
Nikita Taranov
a3652f1727
Merge branch 'master' into optimize_reading2
2023-05-29 15:26:18 +02:00
Sergei Trifonov
688f23b325
Merge pull request #50313 from ClickHouse/fix-flaky-async-loader-test
...
Fix flaky `AsyncLoader.StaticPriorities` unit test
2023-05-29 13:42:15 +02:00
Sergei Trifonov
c26b3b36ae
Merge branch 'master' into fix-flaky-async-loader-test
2023-05-29 13:38:35 +02:00
Sergei Trifonov
355f917daa
Update src/Common/tests/gtest_async_loader.cpp
2023-05-29 13:38:14 +02:00
Sergei Trifonov
df14ec4d58
Merge branch 'master' into clang15_crash
2023-05-29 13:36:08 +02:00
alesapin
6b7e2a0041
Merge pull request #49961 from CheSema/mem-consumption-s3-write
...
Introduce a limitation of async calls inside s3 write buffer, make a test that memory is bounded even when s3 is slow
2023-05-29 13:29:01 +02:00
serxa
bdb974ab3c
Fix flaky AsyncLoader.StaticPriorities
unit test
2023-05-29 11:21:44 +00:00
Raúl Marín
1ae1f1273a
Avoid clang 15 crash
2023-05-29 11:40:45 +02:00
Victor Krasnov
0ad5b9f598
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-810-dev
2023-05-29 08:26:26 +00:00
Robert Schulze
41d60f0be3
Fix style
2023-05-29 08:08:47 +00:00
Robert Schulze
47daaad172
Merge pull request #49778 from helifu/master2
...
Support custom 'order by' expression for system log tables
2023-05-29 10:05:14 +02:00
flynn
758beda39a
Merge branch 'master' into uniqExactIf
2023-05-29 11:06:08 +08:00
Alexey Milovidov
53de761e0e
Merge pull request #50272 from ClickHouse/inverse-async-loader-priority
...
Unify priorities: rework AsyncLoader
2023-05-29 05:01:44 +03:00
Alexey Milovidov
ef7e9e28b7
Merge pull request #50231 from ClickHouse/inverse-io-scheduler-priority-3
...
Unify priorities: rework IO scheduling subsystem
2023-05-29 04:34:23 +03:00
Alexey Milovidov
1875a93328
Merge pull request #50224 from Avogar/fix-custom-separated-ignore-spaces
...
Fix skipping spaces at end of row in CustomSeparatedIgnoreSpaces format
2023-05-29 02:42:38 +03:00
Alexey Milovidov
9647cfa33d
Merge pull request #50291 from kitaisreal/jit-aggregation-nullable-key-fix
...
JIT aggregation nullable key fix
2023-05-29 02:08:02 +03:00
Alexey Milovidov
e1d535c890
Merge pull request #50287 from kitaisreal/function-equals-nan-fix
...
Comparison functions NaN fix
2023-05-29 01:56:02 +03:00
alesapin
1bf32f70a0
Merge branch 'master' into fix-iceberg
2023-05-28 21:59:13 +02:00
alesapin
3a3cee586a
Merge pull request #50257 from CurtizJ/useless-refactoring
...
Yet another refactoring
2023-05-28 21:42:16 +02:00
alesapin
274fc4640b
Merge pull request #49004 from ClickHouse/keeper-log-improvements
...
Small Keeper performance improvements for larger requests
2023-05-28 21:25:23 +02:00
Maksim Kita
e9840bc6e1
JIT aggregation nullable key fix
2023-05-28 21:05:17 +03:00
Nikita Taranov
42a9072888
Merge branch 'master' into optimize_reading2
2023-05-28 18:04:44 +02:00
Maksim Kita
7ef20bbdcd
Function equals NaN fix
2023-05-28 17:02:46 +03:00
Kruglov Pavel
3aa795355f
Fix build
2023-05-28 15:46:32 +02:00
Kruglov Pavel
65c34e73e7
Clean
2023-05-28 15:45:40 +02:00
flynn
ec82c657eb
Parallel merge of uniqExactIf states
2023-05-28 06:04:23 +00:00
helifu
6e8136e6f4
Add 'settings' expression for system log tables
2023-05-28 12:59:34 +08:00
helifu
59a815e4e6
Update according to review comments
2023-05-28 12:59:34 +08:00
helifu
57e5a4aa63
Add the 'order_by' description for system log tables
2023-05-28 12:59:34 +08:00
helifu
03e11b6e16
Remove the duplicate pair of parentheses
2023-05-28 12:59:34 +08:00
helifu
90a6437716
Support custom 'order by' expression for system log tables
2023-05-28 12:59:34 +08:00
Vitaly Baranov
0e2156c776
Fix checksum calculation for backup entries ( #50264 )
...
* Fix possible deadlock in calculating backup entries' checksums.
* Fix data type used to store checksums.
* Allow ReadBufferFromMemory::seek() to go to the end of the buffer
(seek(0, SEEK_SET) must be allowed for an empty buffer)
* Add tests.
---------
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-05-27 14:35:37 +02:00
Sema Checherinda
86f85d7b3b
cope with finalize in d-tors
2023-05-27 01:18:01 +02:00
avogar
ef9bae50b9
Fix bugs in Poco, use true non-blocking IO
2023-05-26 23:11:57 +00:00
Alexey Gerasimchuk
12105c3dfa
Merge branch 'master' into ADQM-830
2023-05-27 07:35:05 +10:00
Sema Checherinda
1588219ffd
comments
2023-05-26 19:03:59 +02:00
Sema Checherinda
8523cd54a0
working with review comments
2023-05-26 19:00:22 +02:00
Sema Checherinda
7c9d2ab6d0
working with review comments
2023-05-26 19:00:13 +02:00
Sema Checherinda
b0eff95388
update doc, add profile event WriteBufferFromS3WaitInflightLimitMicroseconds
2023-05-26 18:59:21 +02:00
Sema Checherinda
7031796d3f
fixing tests
2023-05-26 18:59:21 +02:00
Sema Checherinda
0b781bd4f1
fix test_merge_canceled_by_s3_errors
2023-05-26 18:59:21 +02:00
Sema Checherinda
206efee9b7
add test with merge tree table
2023-05-26 18:59:21 +02:00
Sema Checherinda
4249bda449
s3_max_inflight_parts_for_one_file with tests
2023-05-26 18:59:11 +02:00
serxa
c4687a8b93
Unify priorities: rework AsyncLoader
2023-05-26 16:46:59 +00:00
Azat Khuzhin
6b5933a3db
Add new profile events for queries with subqueries
...
Differs from SelectQuery/InsertQuery that it could be > 1 (in case of
MATERIALIZED VIEW attached to the table), since each local SELECT/INSERT
query is accounted, not only initial.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-26 18:28:40 +02:00
Robert Schulze
f49160ef4e
Build partial key positions from entire training data
2023-05-26 15:27:56 +00:00
serxa
edffedbabf
fix
2023-05-26 15:10:08 +00:00
Antonio Andelic
4bdce2a669
Fix test for new analyzer
2023-05-26 15:02:50 +00:00
Sergei Trifonov
84203341ca
Merge branch 'master' into async-loader-workloads
2023-05-26 16:17:56 +02:00
Sergei Trifonov
640ada6182
Merge branch 'master' into inverse-io-scheduler-priority-3
2023-05-26 16:16:06 +02:00
Denny Crane
3ef04ad417
Doc. clarify dns_max_consecutive_failures one more time ( #50212 )
2023-05-26 15:56:24 +02:00
Sergei Trifonov
0d1f2e297b
Unify priorities: lower value means higher priority ( #50205 )
2023-05-26 15:55:30 +02:00
Sema Checherinda
9603f2b49c
Merge pull request #50190 from ClibMouse/feature/unify-core-id-querying
...
Implement a uniform way to query processor core IDs
2023-05-26 15:46:39 +02:00
Victor Krasnov
050b93363b
Add unit tests
2023-05-26 12:25:11 +00:00
Anton Popov
f9c7fcbe0a
Merge branch 'master' into useless-refactoring
2023-05-26 13:45:58 +02:00
Antonio Andelic
a9569478e6
fix typo
2023-05-26 13:09:09 +02:00
Antonio Andelic
3d98e591ba
Handle backwards compatibility
2023-05-26 10:46:18 +00:00
Kruglov Pavel
67c8c5c561
Add missing include
2023-05-26 12:44:43 +02:00
Kruglov Pavel
03652efe58
Add missing include
2023-05-26 12:44:28 +02:00
alesapin
bdf1c54f36
Merge branch 'master' into transactions_for_encrypted_disk
2023-05-26 12:25:39 +02:00
Robert Schulze
2298eeb2b2
Merge branch 'master' into rs/entropy-learned-hashing
2023-05-26 12:04:49 +02:00
Robert Schulze
d14dafcd9c
Merge pull request #50103 from rschu1ze/space
...
Spark compatibility: Add new function space()
2023-05-26 11:16:37 +02:00
Alexey Milovidov
27617fb590
Merge pull request #50216 from azat/fix-asts
...
Fix UB for INTO OUTFILE extensions (APPEND / AND STDOUT) and WATCH EVENTS
2023-05-26 12:06:02 +03:00
Robert Schulze
e2a5acbeb9
Merge branch 'master' into space
2023-05-26 10:40:02 +02:00
Antonio Andelic
767193caf5
Merge branch 'master' into keeper-log-improvements
2023-05-26 07:35:36 +00:00
Raúl Marín
b3a96de533
Pure parallel replicas: JOIN support ( #49544 )
2023-05-26 01:04:24 +02:00
Anton Popov
612173e734
refactoring near alter conversions
2023-05-25 22:54:54 +00:00
Alexey Gerasimchuck
01f3a46cf0
fixed wrong case in removeNullable
2023-05-25 22:49:36 +00:00
Kruglov Pavel
18be731e30
Merge branch 'master' into fix-secure-async-read-write
2023-05-26 00:46:33 +02:00
Kruglov Pavel
f03ca41b08
Fix build
2023-05-26 00:21:46 +02:00
Kruglov Pavel
67b78829fc
Fix build
2023-05-26 00:21:14 +02:00
Kruglov Pavel
a9082b24b4
Fix build
2023-05-26 00:20:20 +02:00
Robert Schulze
bc869eac7b
Merge branch 'master' into msan-siphash-keyed
2023-05-26 00:18:07 +02:00
Alexey Gerasimchuk
8d7cb7fc3b
Merge branch 'master' into ADQM-830
2023-05-26 07:49:51 +10:00
Alexey Gerasimchuk
613568423d
Update src/Processors/Formats/Impl/CSVRowInputFormat.cpp
...
Co-authored-by: Kruglov Pavel <48961922+Avogar@users.noreply.github.com>
2023-05-26 07:49:45 +10:00
serxa
4f0aeee236
fix more conflicts
2023-05-25 20:50:22 +00:00
Kruglov Pavel
1964d1bb7e
Fix comment
2023-05-25 22:30:16 +02:00
avogar
42e1e3ae20
Fix working with secure socket after async connection
2023-05-25 20:24:03 +00:00
Robert Schulze
c4f91a1c45
Merge branch 'master' into space
2023-05-25 19:56:20 +02:00
Robert Schulze
ad4a21034f
Fix msan issue in keyed siphash
...
Issue:
https://s3.amazonaws.com/clickhouse-test-reports/0/ffdd91669471f4934704f98f0191524496b4e85b/fuzzer_astfuzzermsan/report.html
Repro:
SELECT hex(sipHash128ReferenceKeyed((toUInt64(2), toUInt64(-9223372036854775807)))) GROUP BY (toUInt64(506097522914230528), toUInt64(now64(2, NULL + NULL), 1084818905618843912)), toUInt64(2), NULL + NULL, char(-2147483649, 1)
Minimal repro:
SELECT sipHash64Keyed((2::UInt64, toUInt64(2)), 4) GROUP BY toUInt64(2)
2023-05-25 17:52:03 +00:00
Robert Schulze
eca08438f4
Fix macos build
2023-05-25 17:05:18 +00:00
alesapin
e4c1e2f232
Fix build while it's not failing locally
2023-05-25 17:37:09 +02:00
alesapin
e94b0c8e5e
Fix bug
2023-05-25 16:38:19 +02:00
Nikita Mikhaylov
0580859e6f
Better
2023-05-25 14:05:44 +00:00
kssenii
3fefacbf20
Fix
2023-05-25 15:48:56 +02:00
Nikita Mikhaylov
cf6ff7ab32
Merge branch 'master' of github.com:ClickHouse/ClickHouse into 46229-repl-clickhouse-keeper
2023-05-25 13:41:25 +00:00
serxa
0ca526c603
Unify priorities: rework IO scheduling subsystem
2023-05-25 13:25:41 +00:00
serxa
3ef6cb7bdc
git-apply #50205
2023-05-25 13:24:45 +00:00
Kseniia Sumarokova
f1a3c9cfd5
Merge pull request #50109 from kssenii/abstract-async-prefetched-buffer
...
Make async prefetched buffer work with arbitrary impl
2023-05-25 15:06:44 +02:00
serxa
b8d3e495e5
add pool_id
out-of-bound checks
2023-05-25 12:42:19 +00:00
Nikita Mikhaylov
1c3b6738f4
Fixes for parallel replicas ( #50195 )
2023-05-25 14:41:04 +02:00
serxa
e3ce2f834a
fix style
2023-05-25 12:35:00 +00:00
Sergei Trifonov
2df22d396d
Merge branch 'master' into async-loader-workloads
2023-05-25 14:32:12 +02:00
Robert Schulze
8804dfd4b0
Fix resizing
2023-05-25 11:57:09 +00:00
Sergei Trifonov
78c89da8bb
Update src/Common/AsyncLoader.cpp
...
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-05-25 13:48:03 +02:00
Sergei Trifonov
32cb9931b6
Update src/Common/AsyncLoader.h
...
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-05-25 13:47:56 +02:00
Han Fei
55c2dbcc2d
Merge pull request #50062 from ZhiguoZh/20230511-toyear
...
Optimize predicate with toYear converter
2023-05-25 13:25:55 +02:00
avogar
ce99825200
Fix skipping spaces at end of row in CustomSeparatedIgnoreSpaces format
2023-05-25 11:19:15 +00:00
vdimir
2df4130d82
Update src/Interpreters/ClusterDiscovery.cpp
2023-05-25 13:06:40 +02:00
alesapin
5b76ab4e03
Fix build
2023-05-25 13:02:40 +02:00
Sema Checherinda
23f894b995
Merge pull request #49777 from helifu/master1
...
Add 'initial_query_id' field for system.processors_profile_log
2023-05-25 12:55:32 +02:00
Sema Checherinda
3329a8428d
Merge pull request #49779 from helifu/master3
...
Add 'partitions' field for system.query_log
2023-05-25 12:51:40 +02:00
Igor Nikonov
1c0b02c3c4
Merge pull request #49503 from ClickHouse/fill_with_by_sorting_prefix_2
...
WITH FILL by sorting prefix
2023-05-25 12:37:40 +02:00
alesapin
b2c9611da6
Fix build
2023-05-25 12:01:24 +02:00
何李夫
e4c8c4cecf
Add zookeeper name in endpoint id ( #49780 )
...
* Add zookeeper name in endpoint id
When we migrate a replicated table from one zookeeper cluster to
another (the reason why we migration is that zookeeper's load is
too high), we will create a new table with the same zpath, but it
will fail and the old table will be in trouble.
Here is some infomation:
1.old table:
CREATE TABLE a1 (`id` UInt64)
ENGINE = ReplicatedMergeTree('/clickhouse/tables/default/a1/{shard}', '{replica}')
ORDER BY (id);
2.new table:
CREATE TABLE a2 (`id` UInt64)
ENGINE = ReplicatedMergeTree('aux1:/clickhouse/tables/default/a1/{shard}', '{replica}')
ORDER BY (id);
3.error info:
<Error> executeQuery: Code: 220. DB::Exception: Duplicate interserver IO endpoint:
DataPartsExchange:/clickhouse/tables/default/a1/01/replicas/02.
(DUPLICATE_INTERSERVER_IO_ENDPOINT)
<Error> InterserverIOHTTPHandler: Code: 221. DB::Exception: No interserver IO endpoint
named DataPartsExchange:/clickhouse/tables/default/a1/01/replicas/02.
(NO_SUCH_INTERSERVER_IO_ENDPOINT)
* Revert "Add zookeeper name in endpoint id"
This reverts commit 9deb75b249619b7abdd38e3949ca8b3a76c9df8e.
* Add zookeeper name in endpoint id
When we migrate a replicated table from one zookeeper cluster to
another (the reason why we migration is that zookeeper's load is
too high), we will create a new table with the same zpath, but it
will fail and the old table will be in trouble.
* Fix incompatible with a new setting
* add a test, fix other issues
* Update 02442_auxiliary_zookeeper_endpoint_id.sql
* Update 02735_system_zookeeper_connection.reference
* Update 02735_system_zookeeper_connection.sql
* Update run.sh
* Remove the 'no-fasttest' tag
* Update 02442_auxiliary_zookeeper_endpoint_id.sql
---------
Co-authored-by: Alexander Tokmakov <tavplubix@clickhouse.com>
Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
2023-05-25 12:50:14 +03:00
alesapin
8a7c4bee53
Merge branch 'master' into transactions_for_encrypted_disk
2023-05-25 11:35:17 +02:00
Azat Khuzhin
b680697cce
Initialize POD members of ASTs to make it less error-prone
...
The cost of initializing members is insignificant in compare to parsing,
while the cost of the error is high.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-25 10:18:55 +02:00
Azat Khuzhin
b30cfe5503
Fix UB in ASTWatchQuery for is_watch_events
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-25 10:15:30 +02:00
Azat Khuzhin
c053d75741
Fix formatting of INTO OUTFILE extensions (APPEND / AND STDOUT)
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-25 10:15:30 +02:00
Azat Khuzhin
9582d9e892
Fix UB for INTO OUTFILE extensions (APPEND / AND STDOUT)
...
MSAn report:
==38627==WARNING: MemorySanitizer: use-of-uninitialized-value
0 0x555599f5e114 in std::__1::__unique_if<DB::WriteBufferFromFile>::__unique_single std::__1::make_unique[abi:v15000]<> build_docker/./contrib/llvm-project/libcxx/include/__memory/unique_ptr.h:714:32
1 0x555599f5e114 in DB::ClientBase::initOutputFormat() build_docker/./src/Client/ClientBase.cpp:604:21
2 0x555599f590a8 in DB::ClientBase::onData() build_docker/./src/Client/ClientBase.cpp:446:5
3 0x555599f6f36e in DB::ClientBase::receiveAndProcessPacket() build_docker/./src/Client/ClientBase.cpp:1019:17
4 0x555599f6e863 in DB::ClientBase::receiveResult() build_docker/./src/Client/ClientBase.cpp:987:18
5 0x555599f6c05b in DB::ClientBase::processOrdinaryQuery() build_docker/./src/Client/ClientBase.cpp:905:13
6 0x555599f67e05 in DB::ClientBase::processParsedSingleQuery() build_docker/./src/Client/ClientBase.cpp:1711:13
7 0x555599f86fb6 in DB::ClientBase::executeMultiQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) build_docker/./src/Client/ClientBase.cpp:1975:21
Uninitialized value was created by a heap allocation
8 0x55559bd3e038 in DB::ParserExplainQuery::parseImpl(DB::IParser::Pos&, std::__1::shared_ptr<DB::IAST>&, DB::Expected&) build_docker/./src/Parsers/ParserExplainQuery.cpp:53:26
9 0x55559bce31f4 in DB::IParserBase::parse(DB::IParser::Pos&, std::__1::shared_ptr<DB::IAST>&, DB::Expected&)::$_0::operator()() const build_docker/./src/Parsers/IParserBase.cpp:13:20
..
21 0x55559be13b5c in DB::parseQueryAndMovePosition(DB::IParser&, char const*&, char const*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool, unsigned long, unsigned long) build_docker/./src/Parsers/parseQuery.cpp:357:18
22 0x555599f5673a in DB::ClientBase::parseQuery(char const*&, char const*, bool) const build_docker/./src/Client/ClientBase.cpp:362:15
23 0x555599f84a4f in DB::ClientBase::analyzeMultiQueryText() build_docker/./src/Client/ClientBase.cpp:1821:24
24 0x555599f867b3 in DB::ClientBase::executeMultiQuery(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) build_docker/./src/Client/ClientBase.cpp:1910:22
25 0x555599f8a2fd in DB::ClientBase::processQueryText(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) build_docker/./src/Client/ClientBase.cpp:2120:12
26 0x555599f94aee in DB::ClientBase::runNonInteractive() build_docker/./src/Client/ClientBase.cpp:2403:9
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-05-25 10:15:23 +02:00
Alexey Gerasimchuck
75791d7a63
Added input_format_csv_trim_whitespaces parameter
2023-05-25 07:51:32 +00:00
Zhiguo Zhou
1bc4eb1a6c
OptimizeDateFilterVisitor: Revise variable names for clarity
2023-05-25 13:47:03 +08:00
helifu
802b63f2ab
Add 'initial_query_id' field for system.processors_profile_log
...
Facilitate profile data association and aggregation for the same query
2023-05-25 09:37:02 +08:00
Zhiguo Zhou
773a5bbbaa
Optimize predicate with toYear converter
...
The date converters, such as toYear, are widely used in the where
clauses of the SQL queries, however, these conversions are often
expensive due to the complexity of the calendar system.
The function preimage is found an optimization for the predicates
with the converters. Given a predicate, toYear(c) = y, we could
convert it to its equivalent form: c >= b AND c <= e, where b is
"y-01-01" and e is "y-12-31". The similar transformation applies
to other comparisons (<>, <, >, <=, <=).
This commit implemented the above transformation at the AST level
by adding a new pass in the TreeOptimizer and a new AST visitor
for in-place replacing the predicates of toYear with the converted
ones.
2023-05-25 09:11:51 +08:00
Kseniia Sumarokova
2e17503d36
Merge pull request #50187 from kssenii/fix-pg-source
...
Fix PostgreSQLSource reading all unread the data in onFinish
2023-05-24 22:51:48 +02:00
Alexander Gololobov
8996fcb090
Merge pull request #50193 from ClickHouse/fix_for_replicate_delete
...
Don't replicate delete through DDL worker if there is just 1 shard
2023-05-24 22:45:00 +02:00
Dan Roscigno
026a15d8a7
Update dns_max_consecutive_failures docs ( #50196 )
...
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-05-24 21:01:59 +02:00
Alexander Sapin
3e69648268
Fxi moar
2023-05-24 20:02:03 +02:00
Alexander Sapin
1c627fbcab
Fxi
2023-05-24 20:01:36 +02:00
Victor Krasnov
03ca3f96d2
Add built-in documentation to toStartOfWeek and toLastDayOfWeek functions
2023-05-24 17:40:21 +00:00
Alexander Sapin
4a4246a8cc
Dedup
2023-05-24 19:39:53 +02:00
Alexander Sapin
5676a2c880
Small refactoring of encrypted disk
2023-05-24 19:34:51 +02:00
avogar
bc527c7588
Don't send head request for all keys in Iceberg schema inference
2023-05-24 17:07:31 +00:00
Alexander Sapin
2a3362e0c8
Implement encrypted disk transaction and fix shared merge tree with encrypted disk
2023-05-24 17:44:40 +02:00
Alexander Gololobov
de0a074545
Don't replicate delete through DDL worker if there is just 1 shard
2023-05-24 16:10:31 +02:00
ltrk2
f76f989b53
Implement a uniform way to query processor core IDs
2023-05-24 13:33:05 +00:00
kssenii
07eedc8ef1
Fix
2023-05-24 15:03:11 +02:00
alesapin
7c0c49c9d2
Merge pull request #50154 from hanfei1991/hanfei/fix-modify-order-by
...
do not allow modify order by when there are no order by cols
2023-05-24 15:01:38 +02:00
helifu
2255b0287a
Add 'partitions' field for system.query_log
2023-05-24 20:42:31 +08:00
Igor Nikonov
2f5ed81e0d
Merge branch 'master' into fill_with_by_sorting_prefix_2
2023-05-24 14:40:44 +02:00
Alexander Tokmakov
ffdd916694
Merge pull request #50180 from ClickHouse/tavplubix-patch-6
...
Update an exception message
2023-05-24 15:01:50 +03:00
Kruglov Pavel
9545100c9e
Merge pull request #45427 from attack204/urlCluster
...
Add urlCluster table function and refactor all *Cluster table functions
2023-05-24 13:32:56 +02:00
Alexander Tokmakov
486153d581
Update MergeTreeData.cpp
2023-05-24 13:33:28 +03:00
Kseniia Sumarokova
91eb3ad2bc
fix clang-tidy build
2023-05-24 12:14:15 +02:00
vdimir
3f892ceb12
Merge pull request #49816 from bigo-sg/grace_hash_reserve_hash_table
2023-05-24 11:48:19 +02:00
LiuYangkuan
0df4164180
Merge remote-tracking branch 'origin/master' into cluster_discovery
2023-05-24 17:37:01 +08:00
Amos Bird
8bbfdcc56c
Fix index analysis with binary operator null
2023-05-24 15:47:38 +08:00
Amos Bird
b11aa42db9
Fix tests
2023-05-24 14:27:49 +08:00
robot-ch-test-poll2
2b48a483f2
Merge pull request #50151 from ClickHouse/Avogar-patch-1
...
Change fields destruction order in AsyncTaskExecutor
2023-05-24 03:49:32 +02:00
Alexey Milovidov
3e1267c839
Merge pull request #50152 from ClickHouse/tavplubix-patch-6
...
Follow-up to #49889
2023-05-24 01:05:24 +03:00
Robert Schulze
889489b02e
Merge branch 'master' into space
2023-05-23 23:18:19 +02:00
Igor Nikonov
e9c86527b0
Merge branch 'master' into fill_with_by_sorting_prefix_2
2023-05-23 22:58:21 +02:00
Han Fei
037c5f8a06
Merge branch 'master' into hanfei/fix-modify-order-by
2023-05-23 20:48:27 +02:00
Igor Nikonov
2c01104c3f
Clarification comment on retries controller behavior
2023-05-23 17:30:22 +00:00
Han Fei
584c05d8b8
fix modify order by when there was no order by cols
2023-05-23 18:54:36 +02:00
Raúl Marín
db4b3d19ae
Clearer coordinator log ( #50101 )
2023-05-23 17:30:27 +02:00
Alexander Tokmakov
64ee8ebb12
Update MutateTask.cpp
2023-05-23 18:11:08 +03:00
Amos Bird
b82ff979d0
Fix invalid index analysis for date related keys
2023-05-23 23:10:34 +08:00
Igor Nikonov
8645af5809
Hoping to get into next release
2023-05-23 14:54:22 +00:00
Kruglov Pavel
4689412ab3
Change fields destruction order in AsyncTaskExecutor
2023-05-23 16:14:24 +02:00
Anton Popov
3a955661da
Merge pull request #50123 from CurtizJ/fix-multiif-crash
...
Fix crash with `multiIf` and constant condition and nullable arguments
2023-05-23 14:29:32 +02:00
Robert Schulze
285e8f4ae1
Protect against DOS
2023-05-23 12:16:49 +00:00
SmitaRKulkarni
55af60ea3f
Merge branch 'master' into 42192_Lower_parallel_parsing_threads_with_globs
2023-05-23 13:59:15 +02:00
Robert Schulze
f850a448ec
Merge pull request #49870 from arenadata/ADQM-808
...
clickhouse-client: accept queries after "--multiquery" argument
2023-05-23 13:48:52 +02:00
avogar
3c1aeaaa79
Change default value of handshake_timeout to 10 sec, fix possible use-after-free
2023-05-23 11:39:40 +00:00
kssenii
241e75197e
Fix
2023-05-23 13:31:50 +02:00
Antonio Andelic
3e6314675c
Merge pull request #49930 from AVMusorin/write-buffer-from-s3
...
Fix metrics `WriteBufferFromS3Bytes`, `WriteBufferFromS3Microseconds` and `WriteBufferFromS3RequestsErrors`
2023-05-23 12:26:05 +02:00
Igor Nikonov
fbcc944d2f
Merge remote-tracking branch 'origin/master' into fill_with_by_sorting_prefix_2
2023-05-23 10:25:38 +00:00
Kseniia Sumarokova
13cd2d6d5f
Merge pull request #50021 from kssenii/fix-logical-error-in-try-reserve
...
Fix logical error in stress test "Not enough space to add ..."
2023-05-23 12:05:01 +02:00
Alexander Tokmakov
3ac7bc90ef
Merge pull request #50108 from ClickHouse/update_replicated_database_settings
...
Update default settings for Replicated database
2023-05-23 12:56:12 +03:00
Kruglov Pavel
136c3caf03
Merge branch 'master' into handshake-timeout
2023-05-23 11:53:54 +02:00
Kruglov Pavel
66e111a6aa
Fix tests
2023-05-23 11:52:44 +02:00
Kruglov Pavel
0e346c78ae
Merge pull request #49960 from Avogar/fix-tsv-nullable-parsing
...
Fix possible Logical error on bad Nullable parsing for text formats
2023-05-23 11:42:07 +02:00
Alexander Tokmakov
141a72d694
Merge pull request #49637 from ClickHouse/less_zookeeper_requests
...
Provide better partitions hint for merge selecting task
2023-05-23 12:40:39 +03:00
robot-clickhouse-ci-1
a05088ab73
Merge pull request #50105 from ClickHouse/analyzer-table-function-fix
...
Analyzer: Do not execute table functions multiple times
2023-05-23 10:16:34 +02:00
Alexey Gerasimchuk
30f3b3ba04
Merge branch 'master' into ADQM-808
2023-05-23 17:03:54 +10:00
Robert Schulze
f4c73e94d2
Merge pull request #49989 from arenadata/ADQM-811
...
Add support of Date|Date32 arguments to the toUnixTimestamp() function
2023-05-23 08:55:56 +02:00
Robert Schulze
d9a7227cf4
Fix style check
2023-05-23 06:49:19 +00:00
Victor Krasnov
07d9f33b2e
Improve toFirstDayNumOfWeek infinitesimally
2023-05-23 04:01:44 +00:00
Alexey Gerasimchuk
df751f1bca
Merge branch 'master' into ADQM-808
2023-05-23 13:43:18 +10:00
robot-ch-test-poll4
945673565c
Merge pull request #50059 from ClickHouse/cache-try-reserver-cleanup
...
FileCache: simple tryReserve() cleanup
2023-05-23 04:02:37 +02:00
Alexey Gerasimchuck
ab5e16a713
Changes after second review iteration
2023-05-23 00:27:17 +00:00
Anton Popov
f8905acb46
fix crash with multiif and constant condition and nullable arguments
2023-05-22 23:31:50 +00:00
Alexey Milovidov
dc4cb5223b
Merge pull request #50056 from kitaisreal/jit-compilation-not-equals-nan-fix
...
JIT compilation not equals NaN fix
2023-05-23 01:45:14 +03:00
Igor Nikonov
3a29f275e0
Fix: do not generate suffix on new chunk if didn't reach current range end
2023-05-22 21:50:12 +00:00
Kseniia Sumarokova
ce6054590f
Fix bad merge
2023-05-22 22:49:09 +02:00
avogar
646eeb63a4
Fix build
2023-05-22 19:46:05 +00:00
avogar
4f85d6a1bb
Merge branch 'master' of github.com:ClickHouse/ClickHouse into random-structure
2023-05-22 19:43:24 +00:00
Kruglov Pavel
cee6c3914f
Fix build
2023-05-22 21:36:55 +02:00
avogar
bf19765c9b
Fix possible use-of-uninitialized-value
2023-05-22 19:34:19 +00:00
Kruglov Pavel
979df2a028
Merge branch 'master' into fix-tsv-nullable-parsing
2023-05-22 21:25:05 +02:00
avogar
88e4c93abc
Merge branch 'master' of github.com:ClickHouse/ClickHouse into urlCluster
2023-05-22 19:19:57 +00:00
Robert Schulze
d76498dca0
reserve() --> resize()
2023-05-22 19:19:08 +00:00
Robert Schulze
d5cfcdfae1
String terminator: \n --> \0
2023-05-22 19:10:03 +00:00
Igor Nikonov
4c97ca0a9e
Merge remote-tracking branch 'origin/master' into fill_with_by_sorting_prefix_2
2023-05-22 18:59:58 +00:00
avogar
2541ad69d5
Fix bad conflicts resolving
2023-05-22 18:23:39 +00:00
avogar
17b639c612
Make better
2023-05-22 18:22:05 +00:00
kssenii
295fe3b228
Merge remote-tracking branch 'upstream/master' into abstract-async-prefetched-buffer
2023-05-22 20:01:38 +02:00
kssenii
c4d862a16f
Make async reader work with any impl
2023-05-22 19:54:04 +02:00
Alexander Tokmakov
5b768ebd97
update default settings for Replicated database
2023-05-22 19:32:32 +02:00
Alexander Tokmakov
c2b1e8ca0d
fix
2023-05-22 19:30:28 +02:00
Dmitry Novik
0ad041e7c3
Remove redundant code
2023-05-22 16:42:14 +00:00
Dmitry Novik
fc10ba871f
Analyzer: Do not execute table functions multiple times
2023-05-22 16:36:34 +00:00
Kseniia Sumarokova
c6e4db969f
Merge pull request #50028 from kssenii/some-minor-changes
...
Move some common code to common
2023-05-22 18:25:24 +02:00
Sergei Trifonov
f099e3f41e
Merge pull request #50045 from azat/ddl-fix-opentelemetry
...
Add proper escaping for DDL OpenTelemetry context serialization
2023-05-22 18:20:17 +02:00
Nikolay Degterinsky
d4b89cb643
Merge pull request #49356 from Ziy1-Tan/vcol
...
Support for `_path` and `_file` virtual columns for table function `url`.
2023-05-22 18:10:32 +02:00
Nikolay Degterinsky
7bed59e1d2
Merge pull request #50000 from evillique/add-schema-inference
...
Add schema inference to more table engines
2023-05-22 17:24:30 +02:00
Robert Schulze
df436b2cd4
Spark compatibility: Add new function space()
2023-05-22 14:52:51 +00:00
Igor Nikonov
48ad2896c7
Remove segments from candidates as soon as handle them
2023-05-22 14:13:37 +00:00
avogar
ea59d2ec5d
Allow custom cleanup function
2023-05-22 14:06:46 +00:00
Alexander Tokmakov
821b64b420
apply review suggestions
2023-05-22 15:18:29 +02:00
Kruglov Pavel
054ffc47b7
Merge branch 'master' into fiber-local-var-2
2023-05-22 15:17:45 +02:00
kssenii
6bfbbc94bf
A little better
2023-05-22 15:04:27 +02:00
Kruglov Pavel
b5cad024e0
Merge branch 'master' into urlCluster
2023-05-22 14:59:34 +02:00
avogar
ef09ed7117
Fix assert in SpanHolder::finish() with fibers attempt 2
2023-05-22 12:35:53 +00:00
alesapin
cc3897a84a
Merge pull request #50033 from kssenii/disk-object-storage-minor-changes
...
Get rid of indirect write buffer in object storages
2023-05-22 14:08:17 +02:00
Alexander Tokmakov
876490ff40
Merge pull request #50065 from azat/dict/load-factor-range-fix
...
Fix hashed/sparse_hashed dictionaries max_load_factor upper range
2023-05-22 15:04:56 +03:00
Alexander Tokmakov
487e510103
Merge branch 'master' into less_zookeeper_requests
2023-05-22 13:59:26 +02:00
Igor Nikonov
d27b88538d
Fix grammar
...
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2023-05-22 13:41:50 +02:00
Sergei Trifonov
0f90bfdd11
Merge pull request #50051 from ClickHouse/add-more-distributed-connection-profile-events
...
Add more profile events for distributed connections
2023-05-22 13:37:56 +02:00
Sergei Trifonov
7fbfa4b21e
Merge branch 'master' into async-loader-workloads
2023-05-22 13:31:42 +02:00
Sergei Trifonov
b1d5ef5440
Merge pull request #49995 from azat/dict/server-memory
...
Charge only server memory for dictionaries
2023-05-22 13:27:13 +02:00
Kruglov Pavel
e7c0b75a5a
Merge pull request #50001 from ClickHouse/compliant
...
Add setting output_format_parquet_compliant_nested_types to produce more compatible Parquet files
2023-05-22 13:20:51 +02:00
Alexander Tokmakov
c89f92e1f6
Merge pull request #50052 from amosbird/fix_49913
...
Fix reporting broken projection parts
2023-05-22 14:20:06 +03:00
Alexander Tokmakov
8dbf7beb32
Merge pull request #50015 from azat/ddl-initial-query-id
...
Preserve initial_query_id for ON CLUSTER queries
2023-05-22 14:03:45 +03:00
kssenii
fa479a870b
Merge remote-tracking branch 'upstream/master' into fix-logical-error-in-try-reserve
2023-05-22 13:02:25 +02:00
kssenii
2d0ebba67f
Better
2023-05-22 12:58:56 +02:00
Nikolai Kochetov
dc22e90d2d
Merge pull request #49508 from ClickHouse/fix-tracecollector
...
Fix bug in TraceCollector destructor.
2023-05-22 12:28:17 +02:00