Frank Chen
6812e493dc
Set SpanKind for DDL
2023-03-12 21:31:24 +08:00
Frank Chen
0bdd645049
SET SpanKind for HTTP/TCP/GRPC handler
2023-03-12 21:31:08 +08:00
Frank Chen
dfcb9c9431
Add SpanKind
2023-03-12 21:30:29 +08:00
Maksim Kita
fe25922899
Planner JOIN TREE build fix
2023-03-12 13:43:58 +01:00
Nikolai Kochetov
28c2ac6bce
Fix test.
2023-03-12 11:13:44 +00:00
Nikolai Kochetov
861b0397fa
Add a comment.
2023-03-12 11:06:29 +00:00
Alexander Tokmakov
2c65f67201
Merge pull request #47476 from ClickHouse/revert_46622
...
Revert #46622 (test_async_insert_memory)
2023-03-12 14:05:29 +03:00
Smita Kulkarni
39a146ab87
Merge branch 'master' into Parameterized_view_bug_fix_47287_47247
2023-03-12 11:05:28 +01:00
Smita Kulkarni
e85096b444
Updated variable name to fix build & call to getSampleBlockForColumns. Added a test for substring parameter name.
2023-03-12 11:00:17 +01:00
robot-ch-test-poll1
bc39f3e4d9
Merge pull request #47473 from ucasfl/explain-graph
...
Fix explain graph with projection
2023-03-12 01:31:04 +01:00
Alexander Tokmakov
ed08f8f5c5
Merge branch 'master' into revert_25674
2023-03-12 02:33:25 +03:00
avogar
5a18acde90
Revert #45878 and add a test
2023-03-11 21:15:14 +00:00
Alexey Milovidov
218ac10425
More detailed error messages on too many parts
2023-03-11 21:44:38 +01:00
Smita Kulkarni
5b11d72ce4
In parameterized view, moved parameter values to SelectQueryInfo from StorageView as it can be used by multiple queries and updated column name check to avoid issues with parameter name being substring of column name.
2023-03-11 20:39:43 +01:00
Alexey Milovidov
4cfc040829
Fix parameterized queries
2023-03-11 20:16:06 +01:00
Maksim Kita
114d30d2bb
Merge pull request #47383 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
...
Analyzer planner fixes before enable by default
2023-03-11 22:09:04 +03:00
flynn
e56eeac05f
fix
2023-03-11 18:48:36 +00:00
Alexander Tokmakov
7b1b238d0b
Revert "Merge pull request #25674 from amosbird/distributedreturnconnection"
...
This reverts commit 5ffd99dfd4
, reversing
changes made to 2796aa333f
.
2023-03-11 19:09:47 +01:00
flynn
2682844951
fix
2023-03-11 18:06:50 +00:00
flynn
3190b89f9a
Fix
2023-03-11 18:04:19 +00:00
Alexander Tokmakov
13aa2ce89b
Revert "Merge pull request #26807 from amosbird/improvement2"
...
This reverts commit 671c2194b3
, reversing
changes made to ee13f2e6bc
.
2023-03-11 17:26:59 +01:00
Alexander Tokmakov
52504cc2d0
Revert "Merge pull request #27774 from amosbird/distributed-fix"
...
This reverts commit 86af58f54f
, reversing
changes made to 34f5787f0a
.
2023-03-11 17:26:30 +01:00
Alexander Tokmakov
bd124a24ea
Revert "Merge pull request #31965 from azat/connection-drain-pull"
...
This reverts commit 6cb54b4092
, reversing
changes made to 42d938ffa0
.
2023-03-11 17:24:38 +01:00
Alexander Tokmakov
0359b3e336
Revert "Merge pull request #46622 from ClickHouse/async-insert-memory-fix"
...
This reverts commit 67469ad46b
, reversing
changes made to 678e4250cd
.
2023-03-11 17:01:10 +01:00
flynn
191bc9717e
fix style
2023-03-11 15:58:16 +00:00
flynn
530c9ae490
revert
2023-03-11 15:43:19 +00:00
Alexey Milovidov
6ea6883395
Merge pull request #47454 from ClickHouse/tavplubix-patch-5
...
Better error messages in ReplicatedMergeTreeAttachThread
2023-03-11 18:38:40 +03:00
flynn
0084a61c76
Merge branch 'master' of github.com:ClickHouse/ClickHouse into explain-graph
2023-03-11 15:35:47 +00:00
flynn
3e554c2925
fix
2023-03-11 15:24:19 +00:00
Alexey Milovidov
45fe39fa9c
Merge pull request #47449 from ClickHouse/fix-optimize-aggregate-in-order-with-aliases
...
Fix aggregation-in-order with aliases.
2023-03-11 18:22:43 +03:00
flynn
3687698b15
Fix explain graph with projection
2023-03-11 15:03:10 +00:00
Alexey Milovidov
1d351183c5
Merge pull request #47456 from ClickHouse/remove-feature
...
Remove a feature
2023-03-11 15:42:59 +03:00
Igor Nikonov
73d3cc6f0c
some polishing
2023-03-11 12:40:44 +00:00
Igor Nikonov
89580429f2
Merge remote-tracking branch 'origin/master' into fix-distinct-in-order-analyzer
2023-03-11 12:04:16 +00:00
Igor Nikonov
15134cb8c5
Remove debug log
2023-03-11 12:03:34 +00:00
Maksim Kita
c835fa3958
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
d6c7c2193c
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
faaa1d8570
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
8bc92c197f
Fixed build
2023-03-11 11:51:54 +01:00
Maksim Kita
0aaef3b1d0
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
5d86df963e
Analyzer disable StorageWindowView support
2023-03-11 11:51:54 +01:00
Maksim Kita
25088187d4
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
3d34247998
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
0358cb36d8
Fixed tests
2023-03-11 11:51:54 +01:00
Maksim Kita
677408e02e
Fixed style check
2023-03-11 11:51:54 +01:00
Maksim Kita
a762112e15
Analyzer support distributed JOINS and subqueries in IN functions
2023-03-11 11:51:54 +01:00
Konstantin Morozov
5bb6341b56
Merge branch 'master' into indices-storage-memory/update-read
2023-03-11 10:47:32 +01:00
Igor Nikonov
c45c04a1bb
Merge remote-tracking branch 'origin/master' into improve-remove-redundant-distinct
2023-03-11 09:30:38 +00:00
Igor Nikonov
04b1a0cb08
Fix style
2023-03-11 09:29:50 +00:00
Alexey Milovidov
6ba54ab421
Merge branch 'master' into rs/compile-with-cpp23
2023-03-11 06:33:14 +03:00
Alexey Milovidov
eead7fcbac
Fix error in decodeURLComponent
2023-03-11 02:24:44 +01:00
Alexey Milovidov
a5c8f23f69
Remove a feature
2023-03-10 23:33:56 +01:00
Igor Nikonov
4ae9030405
Check if aggregation keys form prefix in distinct columns
2023-03-10 22:03:53 +00:00
Alexander Tokmakov
6e7ffd9a7b
Update ReplicatedMergeTreeAttachThread.cpp
2023-03-11 00:45:09 +03:00
Igor Nikonov
73119b920b
Remove distinct_columns
2023-03-10 20:32:09 +00:00
Nikolai Kochetov
815c5aa87e
Merge branch 'master' into apply-settings-for-explain-earlier
2023-03-10 21:19:07 +01:00
Nikolai Kochetov
91a2f39c0c
Merge branch 'master' into fix-optimize-aggregate-in-order-with-aliases
2023-03-10 21:17:02 +01:00
Nikolai Kochetov
aaecc233b2
Disable logical expression optimizer for expression with aliases. Never use it with optimize_min_equality_disjunction_chain_length=0
2023-03-10 20:14:35 +00:00
Nikolai Kochetov
2fc5864a11
Fix aggregation-in-order with aliases.
2023-03-10 19:37:42 +00:00
Robert Schulze
348a40aa5d
Compile with C++23
2023-03-10 19:11:58 +00:00
Nikolai Kochetov
d2c28fb555
Apply settings for explain subquery as well.
2023-03-10 18:29:13 +00:00
Kruglov Pavel
f387e6013a
Merge pull request #46990 from Avogar/native-types-conversions
...
Allow types conversion in Native input format
2023-03-10 16:55:16 +01:00
Kruglov Pavel
8c37540288
Merge pull request #47410 from Avogar/fix-csv-big-numbers-inference
...
Fix big numbers inference in CSV
2023-03-10 16:52:27 +01:00
avogar
b6c91d9ace
Support Decimals and Date32 in Avro format
2023-03-10 15:48:18 +00:00
Nikolai Kochetov
f6ac225f98
Apply settings for EXPLAIN earlier (in the same way we do for SELECT).
2023-03-10 15:24:47 +00:00
Vladimir C
12480f60b5
Merge pull request #47068 from ClickHouse/vdimir/auto-join-cross
2023-03-10 16:12:46 +01:00
Dmitry Novik
2699ef477f
Move visitor
2023-03-10 14:36:56 +00:00
Arthur Passos
dd77962048
refactor to use string instead of string_views
2023-03-10 10:42:22 -03:00
Sema Checherinda
1260f6910f
Merge pull request #47398 from CheSema/additional-asserts
...
add checks for ptr
2023-03-10 12:32:51 +01:00
Konstantin Morozov
08fdf42cd8
Merge branch 'master' into indices-storage-memory/update-read
2023-03-10 11:51:06 +01:00
Antonio Andelic
a170a909a4
Add expiration window for S3 credentials
2023-03-10 10:06:32 +00:00
Maksim Kita
42dab92774
Merge pull request #47196 from Algunenano/multierror_support
...
Add support for different expected errors
2023-03-10 13:02:41 +03:00
Antonio Andelic
83a3243758
Merge pull request #47065 from ClickHouse/debug-keeper
...
Fix Keeper with `force_sync = false`
2023-03-10 09:27:13 +01:00
Alexey Milovidov
6f35d46ac8
Update SchemaInferenceUtils.cpp
2023-03-10 05:01:06 +03:00
Dmitry Novik
1f59536d4a
Remove whitespaces
2023-03-10 00:03:48 +00:00
Kseniia Sumarokova
7cbf77a178
Update LRUFileCachePriority.cpp
2023-03-09 19:55:58 +01:00
avogar
46979e383f
Fix big numbers inference in CSV
2023-03-09 18:21:47 +00:00
Dmitry Novik
a305c6e7ab
Fix distributed GROUPING SETS and GROUPING function
2023-03-09 18:00:23 +00:00
Arthur Passos
003bbb2685
initialize empty string_view with empty string so std::string_view::begin does not point to null
2023-03-09 13:19:51 -03:00
Anton Popov
66a113ca61
Merge pull request #47384 from CurtizJ/fix-clear-column-with-sparse
...
Fix `ALTER CLEAR COLUMN` with sparse columns
2023-03-09 16:57:23 +01:00
Yakov Olkhovskiy
581f3af921
Merge pull request #47324 from ClickHouse/analyzer-limit-fix
...
Analyzer - fix combine logic for limit expression and limit setting
2023-03-09 08:56:09 -05:00
Alexander Tokmakov
9a95e7b4ee
Merge pull request #47312 from ClickHouse/fix_implicit_transactions
...
Fix an assertion with implicit transactions in interserver mode
2023-03-09 16:47:40 +03:00
Alexander Tokmakov
f8b4af27b2
Merge pull request #47365 from ClickHouse/supress_01111_in_upgrade_check
...
Suppress expected errors from test 01111 in Upgrade check
2023-03-09 16:46:30 +03:00
Vladimir C
1b264ad51e
Merge branch 'master' into vdimir/http_wait_end_of_query_settings
2023-03-09 13:37:56 +01:00
vdimir
c9e48f37cb
Forbid insert select for the same StorageJoin
2023-03-09 12:28:44 +00:00
Igor Nikonov
acffc98bd1
Fix build
2023-03-09 12:22:32 +00:00
Kruglov Pavel
fe973f3d6f
Merge branch 'master' into native-types-conversions
2023-03-09 13:03:25 +01:00
Kruglov Pavel
71b6d6c6ae
Merge pull request #47114 from Avogar/parquet-compression
...
Improve working with compression methods in Parquet/ORC/Arrow formats
2023-03-09 13:02:18 +01:00
Igor Nikonov
2ea3faf90c
Remove distinct on top of MergingAggregatedStep as well
2023-03-09 11:44:38 +00:00
Nikolay Degterinsky
44531e5f85
Merge pull request #47322 from evillique/running_difference
...
Add support for big int types to runningDifference() function
2023-03-09 12:39:35 +01:00
Sema Checherinda
7bf1b83414
add checks
2023-03-09 12:37:57 +01:00
Raúl Marín
7161bbeb88
More improvements based on PR review
2023-03-09 11:37:02 +01:00
Antonio Andelic
a70ca31884
Merge branch 'master' into fix-url-progress-bar
2023-03-09 10:17:33 +00:00
Igor Nikonov
feefce7de5
Test + remove debug logging
2023-03-09 09:24:50 +00:00
Konstantin Morozov
255102292c
refactoring: remove uselees ctor
2023-03-09 10:02:16 +01:00
Konstantin Morozov
4686eb3cdd
refactoring: create new step only once
2023-03-09 09:57:23 +01:00
Antonio Andelic
0ad436aa2c
Revert debug changes
2023-03-09 08:07:59 +00:00
Konstantin Morozov
82efbf01aa
fix empty pipe for read
2023-03-09 08:28:55 +01:00
Roman Vasin
f42f3ee655
Merge branch 'master' into ADQM-639
2023-03-09 09:48:33 +03:00
Yakov Olkhovskiy
86afb8a72d
shortcut for trivial case, fix test, fix comment
2023-03-09 02:24:37 +00:00
Azat Khuzhin
d7b5e36218
Merge branch 'master' into mv-ignore-errors
2023-03-08 22:13:05 +01:00
Igor Nikonov
cfa7119fa7
Fix: apply reading in order for distinct
...
+ respect aliases
2023-03-08 17:56:33 +00:00
Anton Popov
c3b9af96c4
fix ALTER CLEAR COLUMN with sparse columns
2023-03-08 17:19:04 +00:00
Antonio Andelic
a04b38db90
Merge pull request #45108 from ClickHouse/custom-key-parallel-replicas
...
Add support for custom key in parallel replicas
2023-03-08 17:46:11 +01:00
Alexander Tokmakov
38f9f08e1a
Merge pull request #47268 from myrrc/improvement/more-to-base-3
...
use std::lerp, constexpr hex.h
2023-03-08 19:07:34 +03:00
Alexander Tokmakov
debd69f03a
fix an assertion with implicit transactions in interserver mode
2023-03-08 16:53:23 +01:00
Dmitry Novik
e2bb5f12a1
Use correct context
2023-03-08 15:28:23 +00:00
Dmitry Novik
9c617cbf27
Fix GROUPING function initialization for grouping sets
2023-03-08 15:19:57 +00:00
Alexander Tokmakov
ecab007486
Merge pull request #47310 from ClickHouse/vdimir/fix_transaction_read_only
...
Fix MergeTreeTransaction::isReadOnly
2023-03-08 18:02:19 +03:00
Maksim Kita
fb45fd758d
Merge pull request #47225 from kitaisreal/array-exists-to-has-pass-fix
...
Fix RewriteArrayExistsToHasPass
2023-03-08 17:44:24 +03:00
Alexander Tokmakov
c909d1e3f4
Merge pull request #47314 from ClickHouse/fix_upgrade_check_file_exists
...
Fix `File exists` error in Upgrade check
2023-03-08 17:29:34 +03:00
Alexander Tokmakov
0fb537e880
suppress expected errors from test 01111 in Upgrade check
2023-03-08 15:27:43 +01:00
Yakov Olkhovskiy
df698355df
comment
2023-03-08 14:25:24 +00:00
Maksim Kita
d1396594b8
Merge pull request #47280 from kitaisreal/query-plan-filter-push-down-filled-join-fix
...
Query plan filter push down optimization filled JOIN fix
2023-03-08 16:37:00 +03:00
Antonio Andelic
b4061d8aa4
Add logs
2023-03-08 13:06:10 +00:00
Kruglov Pavel
c2079e708b
Merge pull request #47161 from Avogar/fix-deadlock
...
Fix possible deadlock in QueryStatus
2023-03-08 14:05:30 +01:00
avogar
79ef95bc0c
Fix tests and builds
2023-03-08 12:54:22 +00:00
Vitaly Baranov
a88c65d48b
Merge pull request #46772 from vitlibar/fix-changing-expired-role
...
Fix changing an expired role
2023-03-08 12:50:16 +01:00
Raúl Marín
6553cba34b
Merge remote-tracking branch 'blessed/master' into multierror_support
2023-03-08 12:32:29 +01:00
Raúl Marín
ff6c9916e6
Improvements based on the PR
2023-03-08 12:32:14 +01:00
Maksim Kita
b6f3b81403
Query plan filter push down optimization filled JOIN fix
2023-03-08 11:16:06 +01:00
Maksim Kita
299b1d8fed
Merge pull request #45910 from ClickHouse/analyzer-group-by-use-nulls
...
Support `group_by_use_nulls` setting in new analyzer
2023-03-08 13:14:10 +03:00
Antonio Andelic
816a9c1099
Merge branch 'master' into custom-key-parallel-replicas
2023-03-08 11:06:30 +01:00
Igor Nikonov
cc5b97b624
Merge pull request #46997 from AndyBys/log-level-change
...
Change level log in executeQuery
2023-03-08 10:36:21 +01:00
Vladimir C
4f048ce535
Merge pull request #47153 from ClickHouse/vdimir/grace_hash_limit_race_45986
2023-03-08 10:18:32 +01:00
Maksim Kita
b2b8b7f872
Fix RewriteArrayExistsToHasPass
2023-03-08 10:09:55 +01:00
Vladimir C
b298fbeecc
Merge pull request #47134 from KevinyhZou/enable_int_types_repeat_function
2023-03-08 10:09:20 +01:00
Vladimir C
2aec0c1cb0
Merge pull request #47309 from ClickHouse/vdimir/fix_live_view_bg_pool_exception
2023-03-08 10:06:17 +01:00
Robert Schulze
2a47326061
Merge pull request #47313 from ClickHouse/rs/doc-cleanup-kafka
...
Docs: Small cleanups after Kafka fix #47138
2023-03-08 09:40:47 +01:00
Antonio Andelic
a24c9ee1ce
Merge pull request #46644 from ClickHouse/or-equality-chain-to-in
...
Logical expression optimizer in new analyzer
2023-03-08 09:24:36 +01:00
Vitaly Baranov
31b7e6edc6
Keep subscriptions for all enabled roles.
2023-03-08 07:50:04 +01:00
Yakov Olkhovskiy
7966c114bd
analyzer - fix combine logic for limit expression and limit setting
2023-03-08 05:40:10 +00:00
Nikolay Degterinsky
51edcf232c
Add support for big int types to runningDifference() function
2023-03-08 00:52:58 +00:00
Nikolay Degterinsky
1421411d9a
Merge branch 'master' into evillique-patch-2
2023-03-08 01:03:28 +01:00
Alexey Milovidov
e8cdb0c8b1
Merge pull request #46839 from CurtizJ/fix-crash-in-skip-index
...
Do not allow const and non-deterministic secondary indexes
2023-03-08 03:03:09 +03:00
Alexey Milovidov
e2aff59a2d
Merge pull request #47106 from kssenii/allow-nested-disks-in-custom-disks
...
Allow nested custom disks
2023-03-08 03:00:55 +03:00
Alexander Tokmakov
f5cf039190
check if a symlink exists more carefully
2023-03-08 00:04:55 +01:00
Mike Kot
9920a52c51
use std::lerp, constexpr hex.h
2023-03-07 22:50:17 +00:00
Alexander Tokmakov
ffd55d951d
Merge branch 'master' into followup_46681
2023-03-07 23:38:06 +03:00
Vitaly Baranov
9792b93a11
Fix changing a role which is already expired in RoleCache.
2023-03-07 21:22:22 +01:00
Robert Schulze
ff8fc0634a
Docs: Small cleanups after Kafka fix #47138
2023-03-07 19:50:42 +00:00
Robert Schulze
5b91631722
Merge pull request #47138 from AVMusorin/disallow-default-columns-kafka-engine
...
Prohibit DEFAULT/EPHEMERAL/ALIAS/MATERIALIZED columns in KafkaEngine
2023-03-07 20:36:46 +01:00
Kruglov Pavel
69a1309ade
Merge branch 'master' into native-types-conversions
2023-03-07 20:06:17 +01:00
Kruglov Pavel
ba0cc95441
Fix typo
2023-03-07 20:04:52 +01:00
alesapin
223ac414d2
Merge branch 'master' into fix_zero_copy_bug
2023-03-07 18:45:34 +01:00
Arthur Passos
5ba1b5d43c
add more descriptive tests
2023-03-07 14:04:48 -03:00
vdimir
4e79df448f
Catch exceptions in LiveViewPeriodicRefreshTask
2023-03-07 16:17:35 +00:00
vdimir
86410a7a3f
Fix MergeTreeTransaction::isReadOnly
2023-03-07 16:16:51 +00:00
Dmitry Novik
13f1e5b022
Merge remote-tracking branch 'origin/master' into analyzer-group-by-use-nulls
2023-03-07 16:16:48 +00:00
Arthur Passos
a42dee5bed
Merge branch 'ClickHouse:master' into fix_find_first_not_symbols
2023-03-07 12:19:23 -03:00
Nikolai Kochetov
0da310c8dc
Update ProcessList.cpp
2023-03-07 15:30:40 +01:00
Alexander Tokmakov
7ce20f5cd2
fix tests
2023-03-07 14:25:28 +01:00
Arthur Passos
bf365cec8c
Modify find_first_symbols so it works as expected for find_first_not_symbols
2023-03-07 10:08:04 -03:00
Antonio Andelic
dd4db9132a
Merge branch 'master' into debug-keeper
2023-03-07 13:15:05 +01:00
Antonio Andelic
ced97cefbb
Address review comments
2023-03-07 12:07:22 +00:00
Kruglov Pavel
5e1eec48fe
Merge branch 'master' into codecs-better
2023-03-07 12:51:46 +01:00
alesapin
c10cb436f4
Fix build
2023-03-07 12:42:42 +01:00
Kruglov Pavel
9e64441353
Merge pull request #47214 from azat/interserver-mode-address
...
Add real client (initiator server) address into the logs for interserver mode
2023-03-07 12:40:59 +01:00
Maksim Kita
6cd4507f2f
Merge pull request #46923 from ClickHouse/analyzer_trivial_count_optimization
...
Planner: trivial count optimization
2023-03-07 14:39:39 +03:00
alesapin
1db6b9414e
Update src/Storages/StorageReplicatedMergeTree.cpp
...
Co-authored-by: Ilya Yatsishin <2159081+qoega@users.noreply.github.com>
2023-03-07 12:39:17 +01:00
Antonio Andelic
f408f750eb
Disable parallel replicas for joins
2023-03-07 11:24:46 +00:00
Antonio Andelic
2ae0bceb2b
Address PR comments
2023-03-07 10:56:11 +00:00
Kseniia Sumarokova
a9a0d2f5c4
Merge pull request #46524 from artem-yadr/master
...
Support for MongoDB Replica Set URI with readPreference and host:port enum in MongoDB dictionaries
2023-03-07 11:40:33 +01:00
Antonio Andelic
35c15e6ef8
Merge branch 'master' into custom-key-parallel-replicas
2023-03-07 09:37:38 +00:00
Antonio Andelic
083f8cdd64
Merge branch 'master' into or-equality-chain-to-in
2023-03-07 09:09:09 +00:00
Antonio Andelic
915a04c0ec
Merge pull request #47261 from ClickHouse/join-threads-when-exception
...
Join threads if exception happened in `ZooKeeperImpl` constructor
2023-03-07 09:32:29 +01:00
Raúl Marín
951d65f2fd
Fix debug build
2023-03-07 08:36:11 +01:00
Alexey Milovidov
7d48eae0f6
Merge pull request #47256 from ClickHouse/keeper-4lw-clean-resources
...
Add Keeper 4LW for cleaning resources
2023-03-07 04:23:15 +03:00
Nikolay Degterinsky
990af0fb79
Fix typo
2023-03-06 23:44:41 +01:00
Alexey Milovidov
d5c47418fa
Merge pull request #47171 from myrrc/feature/terse-stacktraces
...
Terse stacktraces: no `::__1`, `std::string` as `String`
2023-03-07 01:33:37 +03:00
Alexey Milovidov
93ba0f4bdf
Update StackTrace.cpp
2023-03-07 01:30:44 +03:00
Kruglov Pavel
479cd9b90b
Merge pull request #46972 from Avogar/json-date-int-inference
...
Fix date and int inference from string in JSON
2023-03-06 20:40:38 +01:00
avogar
b5f19ee12c
Make better
2023-03-06 19:34:36 +00:00
alesapin
b5dffe7417
Fix bug in zero copy replica which can lead to dataloss
2023-03-06 19:57:09 +01:00
Kruglov Pavel
3de905bb7c
Merge pull request #46616 from Avogar/fix-ipv4-ipv6-formats
...
Fix IPv4/IPv6 serialization/deserialization in binary formats
2023-03-06 19:40:29 +01:00
Kruglov Pavel
fed645a494
Don't use switch
2023-03-06 18:03:54 +01:00
Kruglov Pavel
df34ab240d
Don't use switch
2023-03-06 18:03:17 +01:00
Igor Nikonov
838ff88abe
Merge branch 'master' into log-level-change
2023-03-06 18:00:49 +01:00
avogar
8847561fc2
Add optional parameters to some codecs, fix aborts in clickhouse-compressor with some codecs
2023-03-06 16:49:28 +00:00
Roman Vasin
cf85915466
Refactor grants logic, create test for grants, update docs
2023-03-06 16:37:41 +00:00
Mike Kot
07a9e486e6
memset for frame pointers'
2023-03-06 19:35:00 +03:00
Mike Kot
4bc443f3c7
initial solution
2023-03-06 19:35:00 +03:00
Vladimir C
3076e92980
Apply suggestions from code review
...
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
2023-03-06 16:56:02 +01:00
Anton Popov
1b0d0c6108
fix skip indexes
2023-03-06 15:29:13 +00:00
Sema Checherinda
8292ffb81e
Merge pull request #47121 from liding1992/master
...
Fix the problem that the 'ReplicatedMergeTree' table failed to insert two similar data when the 'part_type' is configured as 'InMemory' mode.
2023-03-06 16:13:24 +01:00
avogar
d8e5fb5195
Use switch, use lz4 by default
2023-03-06 15:12:15 +00:00
Kruglov Pavel
e4751f95e1
Fix typo
2023-03-06 14:56:05 +01:00
Raúl Marín
43da841e1e
Style
2023-03-06 14:53:32 +01:00
Raúl Marín
7c14059f3f
Update comments
2023-03-06 14:20:45 +01:00
Antonio Andelic
12525f768c
Add default constructor for MultiReadResponse
( #47254 )
...
* Add default constructor for MultiReadResponse
* Remove optional
* Fix style
2023-03-06 14:18:01 +01:00
Raúl Marín
13bda10470
Reimplement hints using the parser
2023-03-06 14:17:31 +01:00
Antonio Andelic
9117c7491d
Join threads if exception happened in constructor
2023-03-06 12:55:02 +00:00
Kruglov Pavel
aa776d00fe
Use executors snapshot
2023-03-06 13:24:36 +01:00
Han Fei
b7eef62458
Merge pull request #45491 from azat/dist/async-send-refactoring
...
[RFC] Rewrite distributed sends to avoid using filesystem as a queue, use in-memory queue instead
2023-03-06 12:32:33 +01:00
Raúl Marín
eb2ed1b123
Add support for different expected errors
2023-03-06 12:31:54 +01:00
Igor Nikonov
f863fc8180
Merge remote-tracking branch 'origin/master' into analyzer_trivial_count_optimization
2023-03-06 10:51:33 +00:00
Igor Nikonov
56e8547f7e
Do not apply the optimization when plan is built only for analysis
2023-03-06 10:47:32 +00:00
Roman Vasin
7dc0f8705c
Merge branch 'master' into ADQM-639
2023-03-06 13:05:47 +03:00
Vladimir C
48f644a958
Fix style in JoiningTransform.cpp
2023-03-06 10:38:21 +01:00
Roman Vasin
95a7e11a47
Merge branch 'master' of github.com:ClickHouse/ClickHouse into ADQM-639
2023-03-06 09:11:20 +00:00
Vladimir C
1455e7602d
Merge pull request #47154 from azat/prewhere-columns-fix
2023-03-06 10:03:31 +01:00
Roman Vasin
b5bb2eb3dc
Add new grant CREATE ARBITRARY TEMPORARY TABLE
2023-03-06 07:20:05 +00:00
Anton Popov
6f3e4d4137
Merge pull request #46118 from CurtizJ/fix-issues-with-sparse
...
Randomize setting `ratio_of_defaults_for_sparse_serialization`
2023-03-05 22:28:18 +01:00
Alexey Milovidov
4f85b733f1
Use string concatenation for XML serialization ( #47251 )
2023-03-05 18:19:33 +01:00
Antonio Andelic
c38d820d0f
Add 4LW for cleaning resource
2023-03-05 16:57:18 +00:00
Nikita Mikhaylov
099013831a
Added batching for reads and retries for the most heavy function in backups ( #47243 )
2023-03-05 16:15:03 +01:00
Alexander Tokmakov
b857060467
Merge pull request #47245 from ClickHouse/fix_deadlock_with_transactions
...
Release shared ptrs after finishing a transaction
2023-03-05 17:19:25 +03:00
Alexey Milovidov
41c79b0c42
Merge pull request #46086 from ClickHouse/fix-data-size
...
Fix data size calculation in Keeper
2023-03-05 14:11:36 +03:00
Alexander Tokmakov
08ce7b031e
release shared ptrs after finishing a transaction
2023-03-04 22:07:59 +01:00
Robert Schulze
10753481f9
Merge pull request #47242 from ClickHouse/rs/docs-index-support-has-hasall-hasany
...
Docs: Update index support of has(), hasAny(), hasAll()
2023-03-04 18:49:24 +01:00
Robert Schulze
11930ad685
Docs: Update index support of has(), hasAny(), hasAll()
2023-03-04 17:27:47 +00:00
Nikolay Degterinsky
7f15575500
Merge pull request #47208 from ClibMouse/z_ip_coding_fix
...
Fix ip coding on s390x
2023-03-04 18:18:14 +01:00
Alexey Milovidov
241fc7cadd
Merge branch 'master' into fix-deadlock
2023-03-04 12:10:59 +03:00
Alexey Milovidov
694f5eb0a8
Update ProcessList.cpp
2023-03-04 12:10:27 +03:00
Alexey Milovidov
a70789c0b3
Whitespace
2023-03-04 09:15:33 +01:00
liding1992
ea8ae193d3
Fix the problem that the 'ReplicatedMergeTree' table failed to insert two similar data when the 'part_type' is configured as 'InMemory' mode.
2023-03-04 09:16:29 +08:00
Alexander Tokmakov
082194a755
Merge pull request #47175 from ClickHouse/correct_fatal_handling
...
More correct handling of fatal errors
2023-03-04 00:38:00 +03:00
Sema Checherinda
85178c9609
Merge pull request #47102 from CheSema/merge-mutate-do-thread-group
...
do flushUntrackedMemory when context switches
2023-03-03 20:23:25 +01:00
Nikita Mikhaylov
5c4da5aa4a
Use separate thread pool for IO operations for backups ( #47174 )
2023-03-03 20:05:42 +01:00
Igor Nikonov
b6f05a6399
Merge remote-tracking branch 'origin/master' into analyzer_trivial_count_optimization
2023-03-03 17:44:08 +00:00
Konstantin Morozov
e0ca12dc66
fix failed CI
2023-03-03 18:16:14 +01:00
Anton Popov
9389cc29da
better mutations of sparse columns
2023-03-03 16:52:01 +00:00
vdimir
a0f5756751
Fix DelayedJoinedBlocksWorkerTransform for grace hash join
2023-03-03 16:30:01 +00:00
Smita Kulkarni
d2dbd5f293
Updated to use tryGet instead of get for checking stage of backups/restores in concurrency check and updated tests by increasing data size to have a longer backup/restore to ensure the overlap and increased timeout correspondingly.
2023-03-03 16:48:14 +01:00
Azat Khuzhin
5403360924
Add real client (initiator server) address into the logs for interserver mode
...
It is useful to understand what is going on, in some obscure cases, for
instance if someone will copy configuration from the production to some
docker env, and then you will see docker's private network addresses
in the logs.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-03-03 16:38:10 +01:00
AVMusorin
0f2ae72141
prohibit DEFAULT/EPHEMERAL/ALIAS in KafkaEngine
2023-03-03 16:25:42 +01:00
Antonio Andelic
737cf8e149
Better
2023-03-03 15:14:49 +00:00
Antonio Andelic
cd4100cb19
Merge branch 'master' into fix-data-size
2023-03-03 15:33:43 +01:00
Suzy Wang
e44e528118
remove unnecessary reverse memcpy
2023-03-03 06:20:18 -08:00
Alexander Tokmakov
cadaf06829
Merge pull request #46681 from ClickHouse/fix_insert_cancellation_in_native_protocol
...
Fix queries cancellation when a client dies
2023-03-03 16:27:20 +03:00
avogar
221ac4a1e5
Better
2023-03-03 13:23:44 +00:00
Konstantin Bogdanov
1bbf5acd47
Pass headers from StorageURL to WriteBufferFromHTTP ( #46996 )
...
* Pass headers from StorageURL to WriteBufferFromHTTP
* Add a test
* Lint
* `time.sleep(1)`
* Start echo server earlier
* Add proper handling for mock server start
* Automatic style fix
---------
Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
2023-03-03 13:55:52 +01:00
Antonio Andelic
fdcb5b784f
Merge branch 'master' into debug-keeper
2023-03-03 13:45:13 +01:00
Alexander Tokmakov
b1a288d271
Merge branch 'master' into correct_fatal_handling
2023-03-03 14:50:07 +03:00
vdimir
db2ffc109c
Add comment to GrachHashJoin::current_bucket_mutex
2023-03-03 10:17:34 +00:00
vdimir
38d157a850
Fix race in grace hash join with limit
2023-03-03 10:13:38 +00:00
Robert Schulze
74fcffb067
Merge pull request #31125 from taiyang-li/map_from_arrasy
...
Implement spark function mapFromArrays()
2023-03-03 09:28:54 +01:00
Antonio Andelic
a6da64aac0
Merge pull request #46824 from ClickHouse/fix-single-thread-parquet
...
Use initial range for fetching file size in HTTP read buffer
2023-03-03 09:23:22 +01:00
Konstantin Morozov
3cb82bfe07
Update read and with ReadFromMemoryStorage
2023-03-03 06:41:48 +01:00
Alexander Tokmakov
619b282060
more correct handling of fatal errors
2023-03-03 01:22:04 +01:00
LiuNeng
d4c5ab9dcd
Optimize one nullable key aggregate performance ( #45772 )
2023-03-02 21:01:52 +01:00
Salvatore Mesoraca
81b30021db
ActionsDAG: do not change result of and() during optimization - part 2 ( #47028 )
2023-03-02 20:48:13 +01:00
Maksim Kita
3cd88003dd
Merge pull request #47101 from kitaisreal/analyzer-planner-fixes-before-enable-by-default
...
Analyzer Planner fixes before enable by default
2023-03-02 22:16:39 +03:00
Alexander Tokmakov
edd238273c
fix another bug in client
2023-03-02 19:51:05 +01:00
Sema Checherinda
7a9f4aab8e
do not call adjustWithUntrackedMemory when untracked_memory is 0
2023-03-02 19:21:03 +01:00
Sema Checherinda
a6c2473518
do flushUntrackedMemory when context swith
2023-03-02 19:21:03 +01:00
Azat Khuzhin
167e4903a8
Fix concrete columns PREWHERE support
...
This is the fix for the IStorage::supportedPrewhereColumns() API.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-03-02 18:51:23 +01:00
Alexander Tokmakov
c518f3690e
Merge branch 'master' into fix_insert_cancellation_in_native_protocol
2023-03-02 18:24:08 +01:00
avogar
14351922e3
Fix possible deadlock in QueryStatus
2023-03-02 17:20:29 +00:00
Robert Schulze
af56646f63
Merge pull request #47139 from ClickHouse/rs/ctad
...
Shorten some code with CTAD
2023-03-02 17:22:36 +01:00
vdimir
b782cba809
Add settings http_wait_end_of_query and http_response_buffer_size
2023-03-02 16:03:10 +01:00
Kruglov Pavel
3b034e7c35
Merge branch 'master' into parquet-compression
2023-03-02 15:55:48 +01:00
Anton Popov
fdf8a418f5
better interface
2023-03-02 14:46:26 +00:00
Antonio Andelic
01cf9c94f4
Merge branch 'master' into custom-key-parallel-replicas
2023-03-02 14:28:42 +00:00
Sema Checherinda
bd5d7f3f81
Merge pull request #47098 from CheSema/release-lambda-before
...
release lambda resources before detaching thread group
2023-03-02 15:28:18 +01:00
Antonio Andelic
9722d8a403
Rename variable
2023-03-02 14:17:48 +00:00
kssenii
10610cbdf4
Fix test
2023-03-02 14:46:20 +01:00
Antonio Andelic
5328a0777b
Merge branch 'master' into fix-single-thread-parquet
2023-03-02 13:45:27 +00:00
Robert Schulze
740aeaba1f
Apply some CTAD
2023-03-02 13:36:47 +00:00
kssenii
2883861795
Merge remote-tracking branch 'upstream/master' into allow-nested-disks-in-custom-disks
2023-03-02 14:30:58 +01:00
Kseniia Sumarokova
2b10f99720
Merge branch 'master' into kssenii-patch-6
2023-03-02 13:56:02 +01:00
Kseniia Sumarokova
09444eeea1
Merge pull request #47006 from ucasfl/null
...
Table function null default table structure
2023-03-02 13:43:16 +01:00
Maksim Kita
d55b800fc6
Fixed code review issues
2023-03-02 13:43:03 +01:00
Maksim Kita
eab29f4a4e
Fixed tests
2023-03-02 13:09:18 +01:00
KevinyhZou
cdc8596f81
enable int type in repeat function
2023-03-02 20:08:39 +08:00
Constantine Peresypkin
fdc6de2a27
use http request body in predefined http handlers
...
adds a new "virtual" parameter `__request_body`
which can be used in http rules, see below
tremendously helps in producing arbitrary REST interfaces
for example:
```xml
<http_handlers>
<rule>
<methods>POST</methods>
<url>/ingest</url>
<handler>
<type>predefined_query_handler</type>
<query>INSERT INTO events(id, data) SELECT {id:UInt32}, {__request_body:String}</query>
</handler>
</rule>
</http_handlers>
```
2023-03-02 12:51:48 +01:00
Mikhail f. Shiryaev
be1cd6cbe4
Merge branch 'master' into map_from_arrasy
2023-03-02 12:36:25 +01:00
Vladimir C
16eedb004f
Merge pull request #47071 from xiedeyantu/support_parse_date
2023-03-02 12:00:48 +01:00
Kruglov Pavel
ce8e49a9a0
Merge pull request #45693 from Avogar/fix-kafka-protobuf
...
Fix formats parser resetting, test processing bad messages in kafka
2023-03-02 11:50:45 +01:00
avogar
a6cf2cdab8
Fix style, add docs
2023-03-02 10:36:07 +00:00
Robert Schulze
cd42cdc57d
Merge pull request #47115 from HarryLeeIBM/hlee-s390x-xxhash-2
...
Fix halfMD5 and cityhash for s390x
2023-03-02 11:09:37 +01:00
Robert Schulze
3af1d0c3bb
Merge branch 'master' into map_from_arrasy
2023-03-02 11:01:01 +01:00
Alexander Gololobov
5870969837
Merge pull request #47109 from ClickHouse/enable_lwd
...
Enable lightweight delete support by default
2023-03-02 09:56:38 +01:00
李扬
2d37e3e7ba
Merge branch 'master' into map_from_arrasy
2023-03-02 14:37:31 +08:00
Alexander Tokmakov
ad4a44df52
fix
2023-03-02 02:59:27 +01:00
Alexey Milovidov
57ac42f48b
Merge pull request #46804 from nickitat/async_reading_small_limit
...
Fix async reading pipeline when small limit is present
2023-03-02 02:30:19 +03:00
Alexey Milovidov
97c0f8a0e0
Merge pull request #47027 from amosbird/clang16
...
Prepare to build with clang 16
2023-03-02 02:10:03 +03:00
HarryLeeIBM
b84e9fdaac
Fix halfMD5 and cityhash for s390x
2023-03-01 13:36:35 -08:00
avogar
5ab5902f38
Allow control compression in Parquet/ORC/Arrow output formats, support more compression for input formats
2023-03-01 21:27:46 +00:00
Robert Schulze
15fec805fb
Merge pull request #46950 from ClickHouse/rs/uninline-likePatternToRegexp
...
Un-inline likePatternToRegexp()
2023-03-01 21:38:40 +01:00
Igor Nikonov
e17c0b6bf1
Review fixes
2023-03-01 20:19:51 +00:00
Sema Checherinda
76451745bc
Update threadPoolCallbackRunner.h
2023-03-01 20:56:38 +01:00
Anton Popov
c4a999ce29
Merge remote-tracking branch 'upstream/master' into HEAD
2023-03-01 19:33:16 +00:00
kssenii
13d50509c0
Fix style check
2023-03-01 20:16:15 +01:00
kssenii
f3e3b916c9
Allow nested custom disks
2023-03-01 19:55:59 +01:00
Alexander Gololobov
f64d08bd5c
Enable lightweight delete support by default
2023-03-01 19:35:55 +01:00
Kseniia Sumarokova
ada3ff2ce9
Update getOrCreateDiskFromAST.cpp
2023-03-01 18:40:13 +01:00
Sema Checherinda
242552b019
Update threadPoolCallbackRunner.h
2023-03-01 18:39:48 +01:00
Nikolai Kochetov
d469f138dc
Merge pull request #46790 from avoiderboi/add-width-bucket
...
Add `WIDTH_BUCKET` function
2023-03-01 18:35:36 +01:00
Maksim Kita
47ece846bc
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
d39be3ac9c
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
14e01566a0
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
51ee007e01
Fixed tests
2023-03-01 18:05:07 +01:00
Maksim Kita
07e114d8f6
Analyzer WITH FILL and INTERPOLATE fix
2023-03-01 18:03:42 +01:00
Maksim Kita
bff55d5b2a
Planner table expression data column order fix
2023-03-01 18:03:42 +01:00
Maksim Kita
6209d13ad5
Analyzer support _shardNum column to shardNum() function rewrite
2023-03-01 18:03:42 +01:00
Maksim Kita
40fc36bb6f
Fixed tests
2023-03-01 18:03:42 +01:00
Maksim Kita
2672f24ced
Analyzer cyclic aliases fix
2023-03-01 18:03:41 +01:00
Maksim Kita
1b946b314e
Analyzer convert LIMIT OFFSET expressions
2023-03-01 18:03:41 +01:00
Maksim Kita
54b704254d
Analyzer support InterpreterCreateQuery
2023-03-01 18:03:41 +01:00