Commit Graph

47551 Commits

Author SHA1 Message Date
Maksim Kita
9bc9e87cba DecimalColumn improve getPermutation performance using RadixSort 2023-09-25 17:29:42 +03:00
Alexey Milovidov
0629b8679b
Merge pull request #54926 from Alex-Cheng/fix_exception_msg_in_pipe
Fix an exception message in Pipe::addTransform
2023-09-25 17:24:57 +03:00
kssenii
59068ec59d Add assertion 2023-09-25 13:34:47 +02:00
Vitaly Baranov
a93d64ab24 More configurable collecting metadata for backup. 2023-09-25 12:22:18 +02:00
Alexey Milovidov
aa37814b3a
Merge pull request #54250 from zvonand/zvonand-fix-53156
Add sub-second precision to `formatReadableTimeDelta`
2023-09-25 00:15:56 +03:00
Alexey Milovidov
580f3c1a01 Merge branch 'master' into remove-current-status 2023-09-24 20:56:17 +02:00
robot-ch-test-poll3
f23339b4be
Merge pull request #54946 from azat/system.stack_trace-max_block_size
Respect max_block_size while generating rows for system.stack_trace (will fix flakiness of the test)
2023-09-24 19:10:17 +02:00
Alexey Milovidov
7bef66ae6a
Merge pull request #54436 from azat/prewhere-filter-fix
Fix possible incorrect result with SimpleAggregateFunction in PREWHERE and FINAL
2023-09-24 20:05:06 +03:00
Andrey Zvonov
d2c95334aa
Merge branch 'ClickHouse:master' into zvonand-fix-53156 2023-09-24 16:15:42 +03:00
Nikolay Degterinsky
ff66d29376
Merge pull request #51469 from frinkr/perf-huge-ast
Improve performace for huge ast by direct-writing the column name for ASTLiteral
2023-09-24 14:56:50 +02:00
Azat Khuzhin
7a761730fa Respect max_block_size while reading form system.stack_trace
Reading from system.stack_trace can be very slow, especially if you read
all columns (there are some optimizations to avoid doing some actions),
that requires:
- reading /proc/self/task
- reading /proc/self/task/*/comm
- sending signal to each of the thread (to read query_id and trace_id)

And even if you have some conditions (for which there are some
optimizations, i.e. not sending signal to the thread which is the
slowest operation under load) it will still send signals to every thread
and wait for result.

This patch implements reading from system.stack_trace with respect to
max_block_size, that will make queries with lower max_block_size and
LIMIT works significantly faster.

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-24 14:01:24 +02:00
Azat Khuzhin
01d22805ef Remove indent for anonymous namespace
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-24 14:01:24 +02:00
Azat Khuzhin
e0bca06a5d Add some logging for preparing rows for system.stack_trace
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-24 14:00:43 +02:00
zvonand
9559a6949b added subseconds to formatReadableTimeDelta and add tests 2023-09-24 13:04:56 +02:00
Nikolay Degterinsky
256a699f43 Merge remote-tracking branch 'upstream/master' into perf-huge-ast 2023-09-24 00:29:03 +00:00
Alexey Milovidov
776c6adfe6
Merge pull request #54553 from Avogar/better-types-inference
Better integer types inference for Int64/UInt64 fields
2023-09-24 02:07:48 +03:00
Alexey Milovidov
b8b3c674f0
Merge pull request #54769 from Avogar/fix-timer-descriptor
Don't use default move assignment in TimerDescriptor
2023-09-24 02:03:08 +03:00
robot-clickhouse
320e4c47f3
Merge pull request #54943 from amosbird/fix-54941
Rebuild minmax_count_projection when partition key gets modified
2023-09-23 22:11:52 +02:00
robot-clickhouse-ci-2
2a26557391
Merge pull request #54399 from vahpetr/fix-nats-high-cpu-usage
Fix NATS high cpu usage
2023-09-23 21:36:21 +02:00
robot-clickhouse-ci-2
f51cf202e3
Merge pull request #54240 from wangtZJU/fix_multi_join_rewrite
fix name clash for multiple join rewriter v2
2023-09-23 21:35:46 +02:00
robot-ch-test-poll4
9d61ed4665
Merge pull request #54664 from bigo-sg/arrow_join_max_block_size
Respect max_block_size for array join to avoid possible OOM
2023-09-23 21:30:51 +02:00
Sergei Trifonov
c1489d52b7
Merge pull request #54618 from ClickHouse/io-scheduling-throttler
add IO scheduling node to limit bandwidth
2023-09-23 21:26:17 +02:00
Alexey Milovidov
e89a8e4d13
Merge pull request #53492 from ClickHouse/fix-prewhere-lost-column
Fix: moved to prewhere condition actions can lose column
2023-09-23 22:24:00 +03:00
Alexey Milovidov
06415c7a53
Merge pull request #52082 from JackyWoo/rewrite_move_functions_out_of_any 2023-09-23 22:22:45 +03:00
Alexey Milovidov
cf080677bf
Simplify code 2023-09-23 22:22:27 +03:00
Azat Khuzhin
24c0d53df7 Fix possible incorrect result with SimpleAggregateFunction in PREWHERE and FINAL
In case of FINAL the result of the expression for PREWHERE can be
changed after applying merge algorithm, and this is the problem for
SimpleAggregateFunction since after applying merging algorithm the value
can be changed.

Note, analyzer does not has this bug because it simply does not reuse
columns from PREWHERE (they does not passed via
GlobalPlannerContext::createColumnIdentifier())

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
v2: update tests references (see https://s3.amazonaws.com/clickhouse-test-reports/54436/baaa688f40fcd064952f62dc8c62ddc752dd0046/fast_test.html)
v3: allow reusing expression from PREWHERE w/o FINAL and revert tests references changes
2023-09-23 20:55:06 +02:00
flynn
661ba85865 add more functions 2023-09-23 17:17:35 +00:00
Alexey Milovidov
c4948efae2
Merge pull request #54938 from ClibMouse/ipv4_read_big_endian
Ipv4 read big endian
2023-09-23 15:41:24 +03:00
Alexey Milovidov
a751f51ec8
Merge pull request #54942 from ClickHouse/binary-like
Allow LIKE over binary data
2023-09-23 15:37:19 +03:00
serxa
44acb53ad3 Merge branch 'master' into io-scheduling-throttler 2023-09-23 10:51:18 +00:00
Sergei Trifonov
4032fc17bb
Merge pull request #54780 from ucasfl/comment
update comment
2023-09-23 12:48:48 +02:00
Amos Bird
81804ce9ba
Rebuild minmax_count_projection when partition key gets modified 2023-09-23 17:59:06 +08:00
flynn
c264bb5fad fix 2023-09-23 04:11:20 +00:00
robot-ch-test-poll2
4f037c2504
Merge pull request #54928 from arenadata/ADQM-1230
Fix data race during BackupsWorker::backup_log initialization
2023-09-23 04:56:12 +02:00
Alexey Milovidov
1326bffe60 Allow LIKE over binary data 2023-09-23 04:14:03 +02:00
robot-ch-test-poll4
ba6f0431a5
Merge pull request #54933 from ClibMouse/feature/big-endian-bson-each-row
Provide support for BSON on BE
2023-09-23 03:00:27 +02:00
robot-ch-test-poll2
3c93a939a2
Merge pull request #54936 from ClickHouse/pufit/s3-yet-another-num-streams-adjustment
Set a minimum limit of `num_streams` in StorageS3
2023-09-23 02:59:50 +02:00
Vitaly Baranov
1e567d5008 Retry backup s3 operations after ConnectionResetException. 2023-09-23 01:56:28 +02:00
robot-clickhouse-ci-2
d98234dc9d
Merge pull request #54803 from Avogar/ephemeral-columns-from-files
Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files
2023-09-22 23:24:42 +02:00
Alexey Milovidov
783d1873b2
Merge pull request #54839 from rschu1ze/vector-search-test-refactoring
Refactor and split up vector search tests
2023-09-23 00:10:47 +03:00
robot-ch-test-poll3
1334202af4
Merge pull request #54863 from zvonand/zvonand-refactor-globs
Refactor and simplify multi-directory globs
2023-09-22 23:09:05 +02:00
Suzy Wang
51bc09d347 big endian 2023-09-22 12:48:31 -07:00
Suzy Wang
6db8d2aa92 ipv4 read fix 2023-09-22 12:48:26 -07:00
robot-ch-test-poll2
ccddc9d37f
Merge pull request #54925 from ClickHouse/clarify-exception-message
Make exception message more descriptive
2023-09-22 21:46:16 +02:00
kothiga
3e57b007a8
Use LE version of unalignedStore. 2023-09-22 12:25:17 -07:00
robot-clickhouse-ci-1
9a3d1d6296
Merge pull request #54920 from ClickHouse/set-promise-on-exception
Set exception for promise in `CreatingSetsTransform`
2023-09-22 20:45:09 +02:00
Robert Schulze
ec09fd124d
Merge pull request #54856 from slvrtrn/to-days-since-year-zero-datetime
`DateTime`/`DateTime64` support in `toDaysSinceYearZero()`
2023-09-22 20:39:54 +02:00
pufit
13eee0e950 Set a minimum limit of num_streams in StorageS3 2023-09-22 14:13:20 -04:00
flynn
f8056ee282 Add function hammingDistance 2023-09-22 17:43:52 +00:00
Nikolai Kochetov
cf40723179
Merge pull request #54895 from amosbird/allow-nullable-primary-keys-for-projections
Always allow nullable keys for projections
2023-09-22 19:09:24 +02:00
Alexander Tokmakov
21ffbd88de
Merge pull request #54859 from ClickHouse/fix_zero_copy_locks
Fix zero copy locks with hardlinks
2023-09-22 18:27:03 +02:00
kothiga
80d511093b
Provide support for BSON on BE 2023-09-22 09:21:21 -07:00
yariks5s
e1f40adfe2 fix typo 2023-09-22 16:21:08 +00:00
Kruglov Pavel
4d675dbad4
Merge pull request #54825 from azat/fix-virtual-columns-filtering
Fix filtering parts with indexHint for non analyzer (resubmit)
2023-09-22 18:20:16 +02:00
yariks5s
dce8908641 fixed url convers. 2023-09-22 16:13:29 +00:00
Alexey Milovidov
6a4e4cc361
Merge pull request #54744 from azat/server-shutdown
Disable killing the server by systemd
2023-09-22 18:04:20 +03:00
Dmitry Novik
0f8afdbbe7 Merge remote-tracking branch 'origin/master' into fix-prewhere-lost-column 2023-09-22 14:50:05 +00:00
Antonio Andelic
176baa6695 Merge branch 'master' into keeper-operation-create-if-not-exists 2023-09-22 13:47:30 +00:00
János Benjamin Antal
2ffa407aab
Update src/Access/SettingsConstraints.cpp
Co-authored-by: Antonio Andelic <antonio2368@users.noreply.github.com>
2023-09-22 15:17:36 +02:00
Robert Schulze
a7c4efb845
Simpler 2023-09-22 13:13:55 +00:00
Antonio Andelic
a691dea6cf Set exception for promise 2023-09-22 13:13:54 +00:00
Alexander Tokmakov
f54c3c6a9f
Update StorageReplicatedMergeTree.cpp 2023-09-22 15:07:55 +02:00
János Benjamin Antal
b11aaecf29 Make exception message more descriptive 2023-09-22 12:35:52 +00:00
Alex Cheng
cf80434a15 fix exception message in Pipe::addTransform 2023-09-22 19:55:44 +08:00
Robert Schulze
7f82765787
Some fixups 2023-09-22 11:52:02 +00:00
Robert Schulze
e9c0dbd33e
Merge remote-tracking branch 'rschu1ze/master' into tableau-online-information-schema 2023-09-22 11:03:06 +00:00
Vitaly Baranov
3a2ca1f69c
Merge pull request #51261 from evillique/users-valid-until
Add VALID UNTIL clause for users
2023-09-22 12:38:30 +02:00
Robert Schulze
9a91f97ac4
Merge pull request #53831 from rschu1ze/clang-17
Switch CI to Clang 17
2023-09-22 12:28:35 +02:00
Robert Schulze
be1e92a2ac
Merge pull request #54518 from rschu1ze/split-better
Provide fallback to Python/Spark-like splitting in splitBy*() functions
2023-09-22 12:07:45 +02:00
Victor Krasnov
fea886907d Fix data race during backup_log initialization 2023-09-22 09:54:33 +00:00
Kseniia Sumarokova
163961115b
Merge pull request #54842 from kssenii/storage-rabbitmq-minor-change
Add some logging to StorageRabbitMQ
2023-09-22 11:51:27 +02:00
zvonand
2eb63649bd fix old workflows 2023-09-22 00:30:46 +02:00
pufit
2b508216a4
Merge branch 'master' into pufit/fix-s3-division-by-zero 2023-09-21 17:42:14 -04:00
Igor Nikonov
b1cc698477
Merge pull request #54564 from vitlibar/fix-sorting-of-union-of-sorted
Fix sorting of UNION ALL of already sorted results
2023-09-21 22:49:53 +02:00
Robert Schulze
877e4f3aab
Merge remote-tracking branch 'rschu1ze/master' into clang-17 2023-09-21 20:21:12 +00:00
pufit
99c1d76604 Fix division by zero in StorageS3 2023-09-21 15:55:42 -04:00
Robert Schulze
a46e0deb85
Resolve bad caching of INCBIN'd external data 2023-09-21 17:41:21 +00:00
Michael Kolupaev
be0c512329
Fix virtual columns having incorrect values after ORDER BY (#54811)
Fix virtual columns having incorrect values after ORDER BY
2023-09-21 10:14:28 -07:00
Michael Kolupaev
9af9b4a085
Enable connection pooling for s3 table function (#54812)
Enable connection pooling for s3 table function
2023-09-21 09:27:20 -07:00
Antonio Andelic
316f42def6
Merge pull request #54745 from ClickHouse/keeper-reduce-batch-size
Revert default batch size for Keeper
2023-09-21 17:44:33 +02:00
Amos Bird
973cd5e972
Always allow nullable keys for projections 2023-09-21 22:46:16 +08:00
Robert Schulze
5209bd2d51
Merge remote-tracking branch 'rschu1ze/master' into clang-17 2023-09-21 14:45:55 +00:00
zvonand
e2b40749a6 the same for HDFS 2023-09-21 16:45:47 +02:00
Robert Schulze
f5137dd0b4
More clang-tidy fixes 2023-09-21 14:40:57 +00:00
zvonand
bc5f141a6c fix {..} for File 2023-09-21 16:40:38 +02:00
Anton Popov
4d7ecf39ac check file collisions on all alters 2023-09-21 14:16:03 +00:00
slvrtrn
4d3b127a1f clang-format to resolve style issues 2023-09-21 16:16:03 +02:00
slvrtrn
2b8a263355 Change referential_constraints to an empty table 2023-09-21 16:11:08 +02:00
Igor Nikonov
8610baabef
Revert "Avoid excessive calls to getifaddrs in isLocalAddress" 2023-09-21 15:57:47 +02:00
Pavel Novitskiy
853e3f0aa7
Add drop table IF EMPTY (#48915) 2023-09-21 09:20:18 -04:00
pufit
bd387f6d2c
Merge pull request #54815 from ClickHouse/pufit/optimal-num-streams-for-s3-storage
Adjusting `num_streams` by expected work in StorageS3
2023-09-21 08:41:39 -04:00
slvrtrn
e49ddbb678 Merge remote-tracking branch 'origin' into tableau-online-information-schema 2023-09-21 14:25:04 +02:00
slvrtrn
da6b856c32 Merge remote-tracking branch 'origin' into to-days-since-year-zero-datetime 2023-09-21 14:22:37 +02:00
Igor Nikonov
d260b7abe4
Merge pull request #54519 from ClickHouse/parallel-replicas-not-enough-replicas
Disable parallel replicas on shards with not enough nodes
2023-09-21 14:07:25 +02:00
Igor Nikonov
127ce64298
Merge pull request #54819 from canhld94/ch_net_interfaces
Avoid excessive calls to getifaddrs in isLocalAddress
2023-09-21 13:29:18 +02:00
Robert Schulze
a0862531cb
Fix clang-17 build 2023-09-21 09:53:52 +00:00
Robert Schulze
44b7fa1030
Merge remote-tracking branch 'rschu1ze/master' into is_deterministic 2023-09-21 09:29:44 +00:00
Robert Schulze
c2a593baf9
Split tests 2023-09-21 09:17:38 +00:00
Vitaly Baranov
bf4662aca7
Merge pull request #53336 from azat/backups/s3-throttling
Fix throttling of BACKUPs from/to S3 (in case native copy was not used) and in some other places as well
2023-09-21 10:42:28 +02:00
wangtao.2077
d80de4ff3a fix name clash for multi join rewrit 2023-09-21 16:33:52 +08:00
Antonio Andelic
64227bc1bd
Merge pull request #54841 from ClickHouse/fix-keeper-segfault-shutdown
Fix Keeper segfault during shutdown
2023-09-21 08:32:24 +02:00
Duc Canh Le
2901eab8cc avoid race condition on last_updated_time
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2023-09-21 03:45:37 +00:00
JackyWoo
307015bc48 Merge branch 'master' into rewrite_move_functions_out_of_any 2023-09-21 11:11:03 +08:00
robot-clickhouse-ci-2
42712d89ec
Merge pull request #54860 from jrdi/interval-operator-plural
Interval operator support plural literals
2023-09-21 04:08:58 +02:00
robot-ch-test-poll
06008fb3c0
Merge pull request #54836 from ClickHouse/fix-signal-handler
Set correct size for signal pipe buffer
2023-09-21 04:06:48 +02:00
zvonand
a05bb020d4 do all the same for HDFS + remove setting 2023-09-21 01:50:41 +02:00
pufit
4a2f7976f0 Resolve PR issues 2023-09-20 19:43:02 -04:00
Robert Schulze
50c51c2854
Fix new clang-tidy-s 2023-09-20 22:17:39 +00:00
zvonand
5f67788c03 update docs and comments 2023-09-21 00:16:17 +02:00
Alexander Tokmakov
4c904a5cb0 fix 2023-09-21 00:00:21 +02:00
zvonand
9eccb12183 small refactor of storageFile globs 2023-09-20 23:59:10 +02:00
Nikolay Degterinsky
5a599610ca
Merge pull request #54793 from HarryLeeIBM/hlee-s390x-string-hash
Fix SimHash function endian issue for s390x
2023-09-20 23:20:07 +02:00
Robert Schulze
e95f9ee814
Merge remote-tracking branch 'rschu1ze/master' into is_deterministic 2023-09-20 21:17:57 +00:00
Jordi Villar
05a1c96258 Interval operator support plural literals 2023-09-20 23:00:25 +02:00
Alexander Tokmakov
f8062d77e1 fix rare data loss 2023-09-20 22:38:25 +02:00
Alexander Tokmakov
ec80068611 add a test for no such key 2023-09-20 22:37:24 +02:00
Alexander Tokmakov
18acc0c19d
Merge pull request #54641 from ClickHouse/followup_54550
Follow-up to #54550
2023-09-20 19:44:56 +02:00
pufit
20105958a8 add reserve 2023-09-20 13:37:06 -04:00
pufit
71c7e3c81e Add logging, fix thread name length 2023-09-20 13:33:25 -04:00
Vitaly Baranov
b3d3ad01f1
Merge pull request #54628 from vitlibar/fix-optimize-read-in-order-from-view
Fix optimize read in order from a view.
2023-09-20 19:14:25 +02:00
Azat Khuzhin
c706101891 Fix throttling of BACKUPs from/to S3 (in case native copy was not used)
In some cases native copy is not possible, and such requests should be
throttled.

v0: copyS3FileNativeWithFallback
v2: revert v0 and pass write_settings
v3: pass read_settings to copyFile()
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-20 18:28:43 +02:00
avogar
520c9e95a9 Fix 2023-09-20 16:25:55 +00:00
avogar
3e08800cb5 Forbid special columns for file/s3/url/... storages, fix insert into ephemeral columns from files 2023-09-20 16:25:55 +00:00
slvrtrn
e2649b5e1d Remove unnecessary function 2023-09-20 18:08:02 +02:00
avogar
54cee196bd Move obsolete format settings to separate section 2023-09-20 16:00:28 +00:00
slvrtrn
859e1a266e toDaysSinceYearZero DateTime/DateTime64 support 2023-09-20 17:59:37 +02:00
Robert Schulze
2c91e52da1
Merge pull request #54600 from rschu1ze/fix-annoy-crash
Annoy/Usearch index: Fix LOGICAL_ERROR during build-up with default values
2023-09-20 17:05:16 +02:00
pufit
729c8aa29f fix glob iterator estimated objects 2023-09-20 10:41:47 -04:00
kssenii
5d66189d87 Fix 2023-09-20 16:39:24 +02:00
Antonio Andelic
b65b1ee97b Merge branch 'master' into keeper-operation-create-if-not-exists 2023-09-20 13:56:36 +00:00
Antonio Andelic
88ab5514a0 Merge branch 'master' into keeper-reduce-batch-size 2023-09-20 13:56:06 +00:00
Antonio Andelic
6dab5bf3a7
Better 2023-09-20 15:55:12 +02:00
kssenii
3ef2c37b92 Add some logging to StorageRabbitMQ 2023-09-20 15:54:11 +02:00
pufit
a1c98bc8c9 fix build 2023-09-20 09:50:35 -04:00
Igor Nikonov
c9bf365767 Polishing 2023-09-20 13:47:11 +00:00
Igor Nikonov
4808c34f3b Fix log message 2023-09-20 13:45:54 +00:00
Alexander Tokmakov
2ba9263098
Merge pull request #54840 from ClickHouse/revert-54791-hanfei/duplicate_index
Revert "refine error code of duplicated index in create query"
2023-09-20 15:44:12 +02:00
Igor Nikonov
2d446fc1ca Merge remote-tracking branch 'origin/master' into parallel-replicas-not-enough-replicas 2023-09-20 13:40:08 +00:00
Antonio Andelic
1a94675350 Don't capture this in callback 2023-09-20 13:32:01 +00:00
Robert Schulze
c75f7c8434
Correct merge result 2023-09-20 13:27:11 +00:00
Robert Schulze
5729871605
Merge remote-tracking branch 'rschu1ze/master' into qc-throw 2023-09-20 13:25:51 +00:00
alesapin
bfca5f735a
Merge pull request #54438 from canhld94/fix_http_timeout
Pass http retry timeout as milliseconds
2023-09-20 15:21:17 +02:00
Alexander Tokmakov
06513f60eb
Revert "refine error code of duplicated index in create query" 2023-09-20 15:16:39 +02:00
slvrtrn
fb0ba86489 Merge remote-tracking branch 'origin' into tableau-online-information-schema 2023-09-20 15:14:40 +02:00
Robert Schulze
a4eeed50b6
Mark obsolete settings in system.merge_tree_settings as is_obsolete = 1 2023-09-20 12:55:53 +00:00
Antonio Andelic
2805ebf2b2 Set correct size for signal pipe buffer 2023-09-20 12:26:06 +00:00
Azat Khuzhin
9c3fb64106 Check type of the filter expressions while filtering by virtual columns
This should fix filtering by virtual columns with non-uint8 types, i.e.
queries like:

    SELECT * FROM data WHERE 1.0

Fixes: 02346_full_text_search
Fixes: 00990_hasToken_and_tokenbf
v2: move check out from is_const to filterBlockWithQuery(), since in is_const there is no way to validate sets.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-20 13:36:25 +02:00
flynn
dfa95ecc2e Merge branch 'master' of github.com:ClickHouse/ClickHouse into comment 2023-09-20 11:16:33 +00:00
Nikolai Kochetov
0bc41bab74
Merge pull request #54544 from kitaisreal/key-condition-in-function-different-types
KeyCondition IN function support different types
2023-09-20 12:54:01 +02:00
Kruglov Pavel
49ee14f701
Merge pull request #54809 from ClickHouse/pqmeta
Prevent ParquetMetadata reading 40 MB from each file unnecessarily
2023-09-20 12:53:22 +02:00
Duc Canh Le
1200e03f20
correctly implement swap 2023-09-20 18:51:31 +08:00
János Benjamin Antal
eb841d59c4
Merge pull request #54735 from bigo-sg/improve_json_query_2
Improve json sql functions by resuing `GeneratorJSONPath`
2023-09-20 12:50:08 +02:00
robot-clickhouse
428a689196
Merge pull request #54810 from ClickHouse/imp-invalid-identifier
Use appropriate error code instead of LOGICAL_ERROR
2023-09-20 12:32:00 +02:00
SmitaRKulkarni
135df6870c
Merge pull request #54706 from ClickHouse/replacing_merge_tree_with_clean_deleted_rows_disabled
Fix ReplacingMergeTree with vertical merge and cleanup
2023-09-20 12:06:55 +02:00
alesapin
2ff36b6e0c
Merge pull request #54768 from ClickHouse/better_exception_in_check_data_part
Better exception message in checkDataPart
2023-09-20 12:04:46 +02:00
Robert Schulze
f3bf8388b6
Incorporate feedback 2023-09-20 10:00:00 +00:00
SmitaRKulkarni
d8adf05de2
Added a new column _block_number (#47532)
Added a new virtual column _block_number which is persisted on merges when allow_experimental_block_number_column is enabled
2023-09-20 11:31:12 +02:00
Duc Canh Le
e6a3f3ed01 get rid of unique pointer
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2023-09-20 09:31:03 +00:00
Azat Khuzhin
d9a634eb0f Fix filtering parts with indexHint for non analyzer
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
(cherry picked from commit ffa82e9297)
2023-09-20 11:29:35 +02:00
Duc Canh Le
5ace2a15db
Update src/Common/isLocalAddress.cpp
Co-authored-by: Igor Nikonov <954088+devcrafter@users.noreply.github.com>
2023-09-20 16:46:32 +08:00
robot-ch-test-poll2
37f732f622
Merge pull request #54808 from ClickHouse/eof
Prevent parquet schema inference reading the first 1 MB of the file unnecessarily
2023-09-20 09:49:42 +02:00
Duc Canh Le
2a5b4ee29a Merge branch 'master' into fix_http_timeout
To trigger CI pipeline
2023-09-20 07:22:02 +00:00
Igor Nikonov
ba37dacba6
Merge pull request #54334 from ClickHouse/pr-distributed-prefer-localhost-replica
Fix: parallel replicas over distributed with prefer_localhost_replica=1
2023-09-20 09:00:32 +02:00
Duc Canh Le
074ee40e3b avoid excessive calls to getifaddrs
Signed-off-by: Duc Canh Le <duccanh.le@ahrefs.com>
2023-09-20 06:55:39 +00:00
pufit
34aecc0bf3 Adjusting num_streams by expected work in StorageS3 2023-09-19 23:05:48 -04:00
lgbo-ustc
e9e5c7a09b update 2023-09-20 08:44:30 +08:00
robot-clickhouse
c7c4166a73
Merge pull request #54670 from ClickHouse/fix-parser-unit-tests
Fix parser unit tests
2023-09-20 02:24:27 +02:00
Yakov Olkhovskiy
e8cd429453 add error code INVALID_IDENTIFIER 2023-09-19 22:11:58 +00:00
Michael Kolupaev
c856ec4087 Prevent ParquetMetadata reading 40 MB from each file unnecessarily 2023-09-19 21:58:50 +00:00
Michael Kolupaev
7271cfd187 Prevent parquet schema inference reading the first 1 MB of the file unnecessarily 2023-09-19 21:58:12 +00:00
slvrtrn
636fc506aa Replace information_schema view columns aliases with uppercase 2023-09-19 23:42:40 +02:00
Igor Nikonov
e28f4e819c
Merge branch 'master' into parallel-replicas-not-enough-replicas 2023-09-19 23:05:24 +02:00
Igor Nikonov
3b4ff5a3d0
Merge branch 'master' into pr-distributed-prefer-localhost-replica 2023-09-19 23:01:30 +02:00
Azat Khuzhin
5e90cd413b Add ability to disable forwarding signals to the child by watchdog
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-19 22:09:38 +02:00
Azat Khuzhin
4d46753541 Convert shutdown_wait_unfinished into ServerSettings
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-19 22:09:38 +02:00
Azat Khuzhin
c439c4bca2
Revert "Fix filtering parts with indexHint for non analyzer" 2023-09-19 21:39:21 +02:00
Han Fei
923ffe412f
Merge pull request #54791 from hanfei1991/hanfei/duplicate_index
refine error code of duplicated index in create query
2023-09-19 20:52:45 +02:00
Han Fei
eb86c113e5
Merge pull request #54184 from priera/fix_mv_insertion_when_duplicated_parts
Inserting only non-duplicate chunks in MV
2023-09-19 20:41:45 +02:00
Han Fei
bab0ef5c16 Merge branch 'master' into hanfei/duplicate_index 2023-09-19 20:40:59 +02:00
Nikolay Degterinsky
e217c8b1fd
Merge pull request #54636 from ClickHouse/evillique-patch-1
Fix a bug in addData and subData functions
2023-09-19 20:24:50 +02:00
robot-ch-test-poll4
a3dcce21b3
Merge pull request #54405 from Avogar/json-or-jsonl
Parse data in JSON format as JSONEachRow if failed to parse metadata
2023-09-19 20:15:09 +02:00
Nikolai Kochetov
1323c5c6ac Merge branch 'master' into pr-distributed-prefer-localhost-replica 2023-09-19 17:44:02 +00:00
Kruglov Pavel
d555fdffa5
Merge pull request #54449 from azat/parts-prune-indexHint
Fix filtering parts with indexHint for non analyzer
2023-09-19 19:15:41 +02:00
Robert Schulze
a15029ecb5
Query Cache: Reject queries with non-deterministic functions by default
https://github.com/ClickHouse/support-escalation/issues/963
2023-09-19 16:41:43 +00:00
Alexander Tokmakov
51b95abc2b
Update Settings.h (#54754) 2023-09-19 17:19:11 +02:00
Maksim Kita
27d8eefe93 Fixed tests 2023-09-19 17:14:32 +03:00
HarryLeeIBM
c66b60f00f Fix SimHash function issue for s390x 2023-09-19 07:12:14 -07:00
Smita Kulkarni
e2887ad27b Merge branch 'master' into replacing_merge_tree_with_clean_deleted_rows_disabled 2023-09-19 15:58:41 +02:00
Han Fei
003f5f77eb refine error code of duplicated index in create query 2023-09-19 15:01:28 +02:00
Robert Schulze
774c4b52da
Rework 2023-09-19 12:20:53 +00:00
slvrtrn
e4e9727572 Update information_schema docs 2023-09-19 14:14:17 +02:00
avogar
f974970c3c Apply suggestion 2023-09-19 11:53:40 +00:00
avogar
5bd2e9f610 Fix tests 2023-09-19 11:53:40 +00:00
avogar
8c29408f5e Parse data in JSON format as JSONEachRow if failed to parse metadata 2023-09-19 11:53:40 +00:00
Kruglov Pavel
acadda1665
Merge branch 'master' into json-object-as-tuple-inference 2023-09-19 13:49:39 +02:00
alesapin
9dcc41cf83 Fxi 2023-09-19 13:47:32 +02:00
alesapin
28b71163b4 Merge branch 'master' into better_exception_in_check_data_part 2023-09-19 13:45:56 +02:00
avogar
268732742b Don't use default move assignment in TimerDescriptor 2023-09-19 11:45:53 +00:00
alesapin
7b1cf9d912 Revert "Better check for exceptions in checkData of non replicated merge tree"
This reverts commit 363ee7cae5.
2023-09-19 13:45:34 +02:00
Kruglov Pavel
e163670357
Merge branch 'master' into http-valid-json-on-exception 2023-09-19 13:42:53 +02:00