Commit Graph

47064 Commits

Author SHA1 Message Date
HarryLeeIBM
735039673a Fix UInt256 and IPv4 random data generation on s390x 2023-09-13 04:55:02 -07:00
alesapin
e8055ba509
Merge pull request #54549 from ClickHouse/fix_redundant_checksums_doesnt_match_error
Fix rare case of CHECKSUM_DOESNT_MATCH error
2023-09-13 13:02:50 +02:00
Antonio Andelic
1c18f6c21d Use log idx for applyUncommittedState 2023-09-13 10:13:02 +00:00
vdimir
77dd2a556a
Merge pull request #52870 from Avogar/fix-misleading-error
Fix misleading error message in OUTFILE with CapnProto/Protobuf
2023-09-13 11:30:04 +02:00
Robert Schulze
f552194166
Even more UB safety 2023-09-13 08:30:02 +00:00
Robert Schulze
8c7a256632
Fix full text index fix 2023-09-13 07:57:48 +00:00
Robert Schulze
e69c1c2f9a
Fix inverted index fix 2023-09-13 07:56:35 +00:00
Alexey Milovidov
bd4aec0601
Revert "Optimize uniq to count" 2023-09-13 09:14:06 +03:00
Nikolay Degterinsky
e648646598 Fixes 2023-09-12 23:11:58 +00:00
Robert Schulze
28068f11e1
Fix #54541 2023-09-12 21:23:23 +00:00
Arthur Passos
da8caeffd2 Merge branch 'master' into arrow_parquet_account_for_monotonically_increasing_offsets_across_batches 2023-09-12 17:50:36 -03:00
alesapin
18ab92eb4f Fix style 2023-09-12 21:57:46 +02:00
Suzy Wang
b90dd62409 ngramDistance* queries fix for big endian platform 2023-09-12 12:55:08 -07:00
alesapin
e17a824fec Fxi 2023-09-12 21:42:32 +02:00
alesapin
6ec65d6be7 Make function slightly more readable 2023-09-12 21:41:05 +02:00
Alexander Tokmakov
46fae52c29 fix zero copy garbage 2023-09-12 20:01:46 +02:00
alesapin
f3729da64b Fix rare case of CHECKSUM_DOESNT_MATCH error 2023-09-12 19:55:56 +02:00
Igor Nikonov
7b3f32b95a
Merge pull request #54520 from ClickHouse/pr-cleanup
Parallel replicas: cleanup unused params
2023-09-12 19:48:18 +02:00
Nikolay Degterinsky
cf662712ea Add new subDate function, apply review suggestions 2023-09-12 16:47:43 +00:00
slvrtrn
0a1495fd00 Revert information_schema changes (new PR) 2023-09-12 18:46:10 +02:00
slvrtrn
28e2ebf9db Merge remote-tracking branch 'refs/remotes/origin/simplified-prepared-statements-for-mysql' into simplified-prepared-statements-for-mysql 2023-09-12 18:41:36 +02:00
slvrtrn
dddea9219a Address the review comments 2023-09-12 18:39:03 +02:00
Robert Schulze
e406467346
More UB safety 2023-09-12 16:28:08 +00:00
robot-clickhouse
1c8ee76ba2
Merge pull request #54513 from Avogar/formats-with-names-no-header
Fix possible parsing error in WithNames formats with disabled input_format_with_names_use_header
2023-09-12 17:58:03 +02:00
pufit
a54a7b726d
Merge pull request #54201 from ClickHouse/pufit/keeper-client-reconfig
Implementing `reconfig`, `sync`, `exists` commands for keeper-client
2023-09-12 10:58:02 -04:00
Anton Popov
38e0689b3b
Merge pull request #54512 from CurtizJ/fix-use-after-free
Fix use-after-free in `MergeTreePrefetchedReadPool`
2023-09-12 16:51:12 +02:00
Dmitry Novik
7edc0a30a3
Merge pull request #54335 from arenadata/ADQM-1109
Added peak_threads_usage to query_log table
2023-09-12 16:03:27 +02:00
Dmitry Novik
f730a003ea
Merge pull request #54467 from ClickHouse/drop-lost-part-log
Add a log message on replicated table drop
2023-09-12 15:59:18 +02:00
Anton Popov
3e242f8ba3
Merge pull request #54351 from Avogar/null-as-default-nested
Support NULL as default for nested types Array/Tuple/Map for input formats
2023-09-12 14:58:21 +02:00
robot-clickhouse
63243fbc03
Merge pull request #54480 from amosbird/fix_54406
Fix aggregate projections with normalized states
2023-09-12 13:43:41 +02:00
Robert Schulze
3e16bdbcc7
Fix UB 2023-09-12 11:10:17 +00:00
Igor Nikonov
3acc26001a Merge remote-tracking branch 'origin/master' into pr-cleanup 2023-09-12 10:38:06 +00:00
Kruglov Pavel
5354af00ae
Merge pull request #53003 from Chen768959/fix-51236
More precise Integer type inference, and fix #51236
2023-09-12 12:05:32 +02:00
Max Kainov
ed7b687a69 parallelize infile 2023-09-12 08:58:43 +00:00
slvrtrn
611a75a87f Merge remote-tracking branch 'origin' into simplified-prepared-statements-for-mysql 2023-09-12 10:38:44 +02:00
Alexey Milovidov
e9daff6c2f
Merge pull request #54506 from azat/system.detached_parts-modification_time
Add modification_time into system.detached_parts
2023-09-12 04:53:59 +03:00
Alexey Milovidov
44a9dbd2b7
Update StorageSystemDetachedParts.cpp 2023-09-12 04:53:51 +03:00
Alexey Milovidov
ee8db35d66
Merge pull request #51449 from ClickHouse/cbrace
Fix data race in copyFromIStreamWithProgressCallback
2023-09-12 04:51:13 +03:00
Alexey Milovidov
4890a516b4
Revert "add runOptimize call in bitmap write method" 2023-09-12 04:50:23 +03:00
Alexey Gerasimchuck
30c213a65e
Update src/Common/ConcurrencyControl.cpp
Co-authored-by: Dmitry Novik <mrnovikd@gmail.com>
2023-09-12 10:10:20 +10:00
Alexey Gerasimchuck
60c9dd226d
Update src/Interpreters/QueryLog.h
Co-authored-by: Dmitry Novik <mrnovikd@gmail.com>
2023-09-12 10:10:05 +10:00
Sema Checherinda
0ea0799118
Merge pull request #54430 from CheSema/remove-recursive-with-projection
reproduce and fix the bug in removeSharedRecursive
2023-09-12 00:18:55 +02:00
Igor Nikonov
d5ea047ab8 Parallel replicas: cleanup unused params 2023-09-11 21:52:40 +00:00
Michael Kolupaev
df71dcd94d Fix data race in copyFromIStreamWithProgressCallback 2023-09-11 21:04:37 +00:00
HarryLeeIBM
26b17f88d5 Add comment for the fix 2023-09-11 13:52:58 -07:00
Amos Bird
667426f1f2
DataTypeAggregateFunction::strictEquals 2023-09-12 03:54:19 +08:00
HarryLeeIBM
0a81389359 Fix endian issue in jemalloc_bins for s390x 2023-09-11 12:14:01 -07:00
Kruglov Pavel
00fcb8aceb
Merge pull request #54373 from Avogar/fix-s3-url-invalid-characters-error
Fix possible error 'URI contains invalid characters' in s3 table function
2023-09-11 20:52:28 +02:00
Amos Bird
9e56cff588
Better lambda capture 2023-09-12 02:49:27 +08:00
Azat Khuzhin
8cd6153c83 Add modification_time into system.detached_parts
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-11 20:29:55 +02:00
avogar
c9612de81f Remove unneded includes 2023-09-11 18:18:33 +00:00
avogar
803d8dcf85 Support NULL as default for nested types Array/Tuple/Map for input formats 2023-09-11 18:18:33 +00:00
Sema Checherinda
d5268f3fb0 rename a member 2023-09-11 19:57:16 +02:00
Alexey Milovidov
eba8af425b
Merge pull request #50722 from ClibMouse/http_codes
Add new exceptions to 4xx error
2023-09-11 20:42:20 +03:00
Dmitry Novik
b12d1219f2 Merge remote-tracking branch 'origin/master' into drop-lost-part-log 2023-09-11 17:05:05 +00:00
Robert Schulze
49f29861a0
Merge pull request #54479 from rschu1ze/todayssinceyearzero
Add function toDaysSinceYearZero()
2023-09-11 17:05:28 +02:00
avogar
b5cccc5f8d Remove unused field 2023-09-11 14:58:02 +00:00
Dmitry Novik
b69a90d61f Change log message level 2023-09-11 14:57:25 +00:00
avogar
2d8f33bfa2 Fix parsing error in WithNames formats while reading subset of columns with disabled input_format_with_names_use_header 2023-09-11 14:55:37 +00:00
Anton Popov
ec37e93461 fix use-after-free in MergeTreePrefetchedReadPool 2023-09-11 14:55:21 +00:00
Robert Schulze
73ce1993fb
Continue #45070 2023-09-11 13:47:06 +00:00
Nikolai Kochetov
59108f3d96
Merge pull request #54476 from ClickHouse/revert-54470-revert-48607-master
Revert "Revert "Add settings for real-time updates during query execution""
2023-09-11 14:59:13 +02:00
Antonio Andelic
479ae52f9c Merge branch 'master' into keeper-batch-flushes 2023-09-11 11:36:23 +00:00
Kruglov Pavel
21a2cf7707
Merge pull request #54337 from wat-ze-hex/show-functions-2023-09-04
Add SHOW FUNCTIONS support to client
2023-09-11 13:03:02 +02:00
Yarik Briukhovetskyi
97f4625037
Merge pull request #54443 from yariks5s/non_const_timezone_fixup
ToString() performance improvement and code cleanup
2023-09-11 10:50:56 +03:00
Sergei Trifonov
08bad4d440
Merge pull request #47009 from ClickHouse/disks-and-io-sheduler 2023-09-11 07:22:14 +02:00
robot-clickhouse-ci-2
47c0f8c99f
Merge pull request #54179 from joelynch/http-query-timing
Add elapsed_ns to HTTP headers X-ClickHouse-Progress and X-ClickHouse-Summary
2023-09-11 06:18:47 +02:00
Nikolay Degterinsky
9ee4b280ff
Merge pull request #52842 from UnamedRus/bitmap-optimize
add runOptimize call in bitmap write method
2023-09-10 23:56:28 +02:00
serxa
6a2534b555 fix keeper build #2 2023-09-10 17:43:04 +00:00
serxa
d326554caa fix keeper build 2023-09-10 14:55:40 +00:00
robot-ch-test-poll
6f3374d684
Merge pull request #54481 from ucasfl/hints
Refactor IHints
2023-09-10 15:46:36 +02:00
Robert Schulze
caadfe393b
Fixes 2023-09-10 13:34:02 +00:00
Azat Khuzhin
5535c7462d Support SAMPLE BY for VIEW
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2023-09-10 08:24:46 +02:00
flynn
6ec783a746 Refactor IHints 2023-09-10 03:48:12 +00:00
Alexey Milovidov
269c82a612
Merge pull request #54409 from ClibMouse/s390x_hash_order_fix
Hashtable order fix on big endian platform
2023-09-10 06:41:43 +03:00
Han Fei
b68421b120
Merge pull request #50906 from johanngan/regexptree-flags
Add case insensitive and dot-all modes to RegExpTree dictionary
2023-09-10 03:16:02 +02:00
Igor Nikonov
d5ffff93a7
Merge pull request #54468 from ClickHouse/distributed-cleanup-select-info
Cleanup: unnecessary SelectQueryInfo usage around distributed
2023-09-09 21:47:36 +02:00
Amos Bird
fb0f9ff565
Fix aggregate projections with normalized states 2023-09-10 03:21:22 +08:00
Robert Schulze
1ce84774f0
Implement toDaysSinceYearZero() / to_days() (MySQL alias)
Fixes: #54277
2023-09-09 16:59:39 +00:00
Robert Schulze
0a05831839
Cosmetics 2023-09-09 16:52:42 +00:00
Alexey Milovidov
c0a43df749
Merge pull request #54435 from Alex-Cheng/small_finetune_merge_join
Small fine-tune for using ColumnNullable pointer
2023-09-09 19:28:28 +03:00
Alexey Milovidov
efc40b3e30
Merge pull request #53502 from liangliangpan/master
bugfix: close rocks db files before deleting data when executing drop table command
2023-09-09 19:27:12 +03:00
Robert Schulze
4d2223defe
Merge pull request #54119 from mkmkme/mkmkme/aklomp-base64
Replace Turbo-Base64 with aklomp/base64
2023-09-09 16:24:26 +02:00
Sema Checherinda
1298dba0c6 fix the bug, add useful logs 2023-09-09 15:54:28 +02:00
Igor Nikonov
2fdc700da2 Style 2023-09-09 13:33:18 +00:00
Igor Nikonov
a12a375a1d Style check 2023-09-09 12:51:34 +00:00
alexX512
7f77869216 Increase amount of rows in requests for partial result tests
(cherry picked from commit 54bc3fea9a)
2023-09-09 10:33:05 +00:00
Nikolai Kochetov
9b936c44db
Revert "Revert "Add settings for real-time updates during query execution"" 2023-09-09 12:29:39 +02:00
serxa
1b3da7fc1e fix build 2023-09-09 09:26:18 +00:00
Igor Nikonov
fff2a2d81c Fix style 2023-09-09 08:29:33 +00:00
Igor Nikonov
5470a5b60f Fix style 2023-09-09 06:58:18 +00:00
Igor Nikonov
b6e9dd96f8 Fix build 2023-09-09 06:55:35 +00:00
Alexey Milovidov
71d37d64ab
Revert "Fix issues in accurateCastOrNull" 2023-09-09 06:37:02 +03:00
Mingliang Pan
4d05b57c21
Merge branch 'ClickHouse:master' into master 2023-09-09 11:12:45 +08:00
Alexey Milovidov
03a755732a
Revert "Add settings for real-time updates during query execution" 2023-09-09 03:10:23 +03:00
Alexey Milovidov
047d481c97
Merge pull request #54382 from evillique/std-alias
Add STD alias to stddevPop function for MySQL compatibility
2023-09-09 02:57:06 +03:00
Igor Nikonov
7a396139df Cleanup: unnecessary SelectQueryInfo usage around distributed 2023-09-08 21:53:38 +00:00
Dmitry Novik
da69a9fda0 Add a log message on replicated table drop 2023-09-08 21:41:42 +00:00
Nikolay Degterinsky
39b11f47f5
Merge pull request #54403 from evillique/fix-column-formatting
Fix incorrect formatting of CREATE query with PRIMARY KEY
2023-09-08 22:14:49 +02:00
Nikolay Degterinsky
88d7b81032
Merge pull request #54379 from evillique/fix-arrayexists-segfault
Fix segfault in AST optimization of `arrayExists` function
2023-09-08 22:11:38 +02:00
Anton Popov
7589a3dd23
Merge pull request #53931 from CurtizJ/refactoring-of-merge-tree-reading
Refactoring of reading from `MergeTree` tables
2023-09-08 20:39:26 +02:00
Andrey Zvonov
ff4586e663
Merge branch 'ClickHouse:master' into zvonand-globs-small-fix 2023-09-08 18:17:06 +02:00
robot-ch-test-poll4
839f69c940
Merge pull request #53765 from vitlibar/sync-uuids-of-tables-on-replicas
Sync UUIDs of tables on replicas after RESTORE
2023-09-08 17:30:32 +02:00
Anton Popov
1aa34c16e3 Merge remote-tracking branch 'upstream/master' into HEAD 2023-09-08 14:00:45 +00:00
Yarik Briukhovetskyi
12ce57369b
Update FunctionsConversion.h 2023-09-08 15:36:33 +02:00
Yakov Olkhovskiy
ed8d2da31f
Merge pull request #54333 from arenadata/ADQM-1156
Fixed wrong dereference problem in Context::setTemporaryStorageInCache
2023-09-08 09:27:42 -04:00
Antonio Andelic
5207997bd4 Merge branch 'master' into keeper-batch-flushes 2023-09-08 13:05:47 +00:00
Antonio Andelic
4a1e2959fa Apply PR comments 2023-09-08 12:52:35 +00:00
Vitaly Baranov
2643e48310
Remove unused code 2023-09-08 13:23:59 +02:00
yariks5s
66479b6966 code cleanup and performance improvement 2023-09-08 10:54:25 +00:00
Nikolai Kochetov
0095124791
Merge pull request #48607 from alexX512/master
Add settings for real-time updates during query execution
2023-09-08 09:05:33 +02:00
chen768959
5c2fd38f73 extract checkUInt64ToIn64Conversion and convertUInt64ToInt64IfPossible to separate functions 2023-09-08 15:05:04 +08:00
Chen768959
329c9fce3c
Merge branch 'ClickHouse:master' into fix-51236 2023-09-08 14:55:41 +08:00
Nikolay Degterinsky
f40d3a25cf
Fix build 2023-09-08 05:22:21 +02:00
Julia Kartseva
59844b0a9d Add SHOW FUNCTIONS support to client
Accepts CH client queries in the form of
SHOW FUNCTIONS [LIKE | ILIKE '< pattern>']

Retrieves all columns from `functions` table in system database.

Fixes #52757
2023-09-07 14:08:50 -07:00
robot-ch-test-poll3
d891a7cad0
Merge pull request #54408 from ClickHouse/fix-deadlock-in-attach-thread
Fix failed assert in attach thread during startup retries
2023-09-07 22:58:52 +02:00
Robert Schulze
7fef4c8cb6
Merge pull request #53680 from yariks5s/todatatime-non-const-data
Support non-constant timezone arguments in toString() and formatDateTime()
2023-09-07 22:11:17 +02:00
Robert Schulze
bff06d18aa
Merge pull request #54249 from rschu1ze/multiple_query_arguments
Allow multiple `--query` parameters in clickhouse-client/local.
2023-09-07 21:20:07 +02:00
Anton Popov
67b27643ed fix creash in case of exception in prefetched pool 2023-09-07 16:56:13 +00:00
Nikolay Degterinsky
3b43667397
Merge pull request #54330 from HarryLeeIBM/hlee-s390x-read-float
Fix precise float parsing issue on s390x
2023-09-07 17:51:40 +02:00
Suzy Wang
fd0da1f278 hashtable order fix for s390x 2023-09-07 07:37:43 -07:00
Antonio Andelic
fae0e13baa Properly remove added interserver endpoint 2023-09-07 14:34:36 +00:00
Antonio Andelic
cf33674738
Merge pull request #54385 from ClickHouse/fix-overflow-in-anova
Check for overflow before addition in `analysisOfVariance` function
2023-09-07 16:15:44 +02:00
serxa
a94ae9a7ab review fixes 2023-09-07 14:02:58 +00:00
Sergei Trifonov
958f102daa
Update src/IO/IResourceManager.h
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2023-09-07 15:58:31 +02:00
Sergei Trifonov
c9635ddacd
Update src/IO/ISchedulerNode.h
Co-authored-by: Kseniia Sumarokova <54203879+kssenii@users.noreply.github.com>
2023-09-07 15:48:49 +02:00
robot-ch-test-poll2
f28ad1e136
Merge pull request #54368 from ClickHouse/fix_replacing_final_error
Fix logical error in vertical merge + replacing merge tree + optimize cleanup
2023-09-07 15:45:43 +02:00
robot-clickhouse
fd4ddc49f2
Merge pull request #54332 from rschu1ze/consolidate-tests-53149
Consolidate GCD codec tests (Follow up to #53149)
2023-09-07 15:29:22 +02:00
Robert Schulze
e761532d7a
Fix style 2023-09-07 15:00:06 +02:00
Joe Lynch
a5b508d6c5
Fix json in header 2023-09-07 14:59:33 +02:00
Alex Cheng
75dc6d9708 small fine-tune for using ColumnNullable pointer 2023-09-07 20:41:32 +08:00
yariks5s
5afca8a903 optimized toString() 2023-09-07 12:41:01 +00:00
Nikolay Degterinsky
e821cd4511 Fix formatting of column declaration 2023-09-07 12:01:07 +00:00
Nikolay Degterinsky
b06412ae60 Add addDate function for compatibility with MySQL 2023-09-07 11:15:49 +00:00
avogar
c6ef811b82 Fix tests 2023-09-07 11:05:06 +00:00
Robert Schulze
cd3c121a62
Various fixups 2023-09-07 10:32:49 +00:00
zvonand
c36a3fbd39 renamed setting 2023-09-07 12:00:25 +03:00
Han Fei
60b0df9245 Merge branch 'master' into regexptree-flags 2023-09-07 10:46:43 +02:00
Antonio Andelic
c795b9c32f Check for overflow before addition in anova function 2023-09-07 07:54:06 +00:00
Alexey Gerasimchuck
f1e4ca4da5 changed data_type 2023-09-07 04:56:13 +00:00
Alexey Milovidov
1b30f91e7a
Merge pull request #51304 from ClickHouse/alter-table-add-comment
Add support for ALTER TABLE MODIFY COMMENT
2023-09-07 07:30:57 +03:00
Nikolay Degterinsky
d95c29227f Add STD alias to stddevPop function for MySQL compatibility 2023-09-07 03:46:27 +00:00
Alexey Gerasimchuck
1c8216b5c6 added assertion 2023-09-07 03:27:04 +00:00
Nikolay Degterinsky
9918a85e78 Better 2023-09-07 02:35:21 +00:00
Nikolay Degterinsky
4b764f7b65 Fix segfault in arrayExists AST optimization 2023-09-07 02:10:14 +00:00
Alexey Gerasimchuck
c2f4dc0f14 Implemented peak_threads_usage 2023-09-07 01:32:39 +00:00
Arthur Passos
f34d40cde3 docs 2023-09-06 17:26:34 -03:00
Arthur Passos
a8027be612 fix 2023-09-06 17:25:27 -03:00
serxa
77697211cd add docs for system.scheduler + small fix 2023-09-06 19:30:39 +00:00
avogar
ab101eaff8 Fix possible error 'URI contains invalid characters' in s3 table function 2023-09-06 18:21:24 +00:00