Commit Graph

63860 Commits

Author SHA1 Message Date
Alexander Tokmakov
e2a7a1f662
Update StackTrace.cpp 2024-09-06 12:08:14 +02:00
Yarik Briukhovetskyi
eb540da247
Merge branch 'ClickHouse:master' into time_buckets_impl 2024-09-06 11:56:22 +02:00
Mikhail Artemenko
cf0e0b766d add test for watches 2024-09-06 09:34:26 +00:00
Mikhail Artemenko
2bbe933531 fix watches logic 2024-09-06 09:33:47 +00:00
Igor Nikonov
2de3a6175a Merge remote-tracking branch 'origin/master' into fix-pr-not-ready-set 2024-09-06 08:36:04 +00:00
Mikhail Artemenko
231a7c97cc move code 2024-09-06 08:34:59 +00:00
kevinyhzou
02e129f0d1 modify test 2024-09-06 10:15:43 +08:00
kevinyhzou
f8b6025e07 rename to allow_experimental_join_right_table_sorting and modify comments 2024-09-06 09:43:32 +08:00
Mikhail Artemenko
aa2721f7e4 update tests 2024-09-06 00:09:46 +00:00
Mikhail Artemenko
cb1c11c74a change traverse 2024-09-06 00:08:08 +00:00
avogar
f22876302e Mark Dynamic type as not safe primary key type to avoid issues with Fields 2024-09-05 23:37:29 +00:00
Pablo Marcos
dde915681c
Merge pull request #69297 from pamarcos/tryresult-logical-error-trace
Improve logical error trace for TryResult
2024-09-05 20:14:47 +00:00
Alexander Gololobov
2df5edc1c1 Merge branch 'master' of github.com:ClickHouse/ClickHouse into query_plan_for_merge 2024-09-05 20:58:47 +02:00
Igor Nikonov
a2cfe62a67
Merge branch 'master' into fix-pr-not-ready-set 2024-09-05 20:40:13 +02:00
Yarik Briukhovetskyi
e799adc618
Merge branch 'ClickHouse:master' into time_buckets_impl 2024-09-05 19:57:53 +02:00
Alexander Tokmakov
c6f0e29eca
Update StackTrace.cpp 2024-09-05 18:36:13 +02:00
kssenii
364ad4315b Add checks agains segfault in DeltaLakeMetadata 2024-09-05 18:20:46 +02:00
Mikhail Artemenko
c3cc2a3fb1 intro new request type 2024-09-05 16:14:50 +00:00
Miсhael Stetsyuk
c9aedee24f
Merge branch 'master' into fix-metadata-version-in-zookeeper 2024-09-05 16:52:56 +01:00
Michael Stetsyuk
32cfdc98b2 fix metadata_version in keeper 2024-09-05 15:51:37 +00:00
Kseniia Sumarokova
6170c15c90
Merge branch 'master' into minor 2024-09-05 17:08:30 +02:00
Nikolai Kochetov
d23145fd19
Update emptyArrayToSingle.h 2024-09-05 16:59:14 +02:00
Alexander Tokmakov
b6572e36b4
Merge pull request #61987 from allmazz/feat/59376
support ATTACH PARTITION `ALL` FROM `TABLE`
2024-09-05 14:57:38 +00:00
Pablo Marcos
0996ed5246 Create a deep copy of Settings to ensure they don't change 2024-09-05 14:53:14 +00:00
Nikolai Kochetov
fb8999a885 Remove commented code. 2024-09-05 14:44:51 +00:00
Nikolai Kochetov
03ac70f988 Fising build. 2024-09-05 14:41:06 +00:00
Nikolai Kochetov
5f5acd3c44 Refactor ArrayJoin step. 2024-09-05 14:34:30 +00:00
Igor Nikonov
536e0808e3
Merge branch 'master' into pr-local-plan 2024-09-05 16:19:47 +02:00
Pablo Marcos
18a6b970eb Improve logical error trace
This will provide meaningful information whenever
the issue happens again.
2024-09-05 13:58:26 +00:00
Anton Popov
27d81fd357
Merge pull request #69256 from CurtizJ/fix-drop-cache-transactions
Fix dropping of file cache in CHECK query in case of enabled transactions
2024-09-05 13:55:30 +00:00
Igor Nikonov
3dcf87a804
Merge branch 'master' into fix-pr-not-ready-set 2024-09-05 15:32:24 +02:00
Alexander Gololobov
20eaecc4f3
Fix build 2024-09-05 13:50:26 +02:00
Alexander Gololobov
e1b2952a60
Merge branch 'master' into query_plan_for_merge 2024-09-05 13:32:12 +02:00
Mikhail Artemenko
6455e1dfa1 add ephemerals check 2024-09-05 11:14:43 +00:00
Mikhail Artemenko
ae512fe533 add test for single delete 2024-09-05 11:05:23 +00:00
Mikhail Artemenko
5180e58dca fix collector 2024-09-05 11:01:37 +00:00
Anton Popov
cf022d3a6d
Merge pull request #65832 from CurtizJ/add-mutations-snapshot
Improved getting of alter conversions for queries
2024-09-05 10:37:00 +00:00
Yarik Briukhovetskyi
ab378a0a46
Merge branch 'ClickHouse:master' into time_buckets_impl 2024-09-05 11:36:28 +02:00
avogar
b4ef10ad1c Make better 2024-09-05 08:52:22 +00:00
Anton Popov
10d2631ec9
Merge pull request #69030 from bigo-sg/improve_array_zip
Add new function arrayZipUnaligned
2024-09-05 08:05:56 +00:00
JackyWoo
431a917cda Merge branch 'master' into add_statistics_minmax 2024-09-05 15:12:00 +08:00
Julia Kartseva
39d4a7bf1e
Merge pull request #69237 from jkartseva/fix-infile-format-async-insert
Fix `INFILE` format detection for async inserts
2024-09-05 02:19:16 +00:00
Nikolay Degterinsky
d1f551e8c9
Merge pull request #69271 from ClickHouse/evillique-patch-2
Minor improvements for Lemmatizers
2024-09-04 23:33:42 +00:00
Mikhail Artemenko
c6777af485 add remove recursive support 2024-09-04 22:59:18 +00:00
János Benjamin Antal
e1b29eae17
Merge pull request #69268 from ClickHouse/revert-69076-create_as
Revert "CREATE TABLE AS copy PRIMARY KEY, ORDER BY, and similar clauses."
2024-09-04 21:09:20 +00:00
Yarik Briukhovetskyi
c997593e61
Merge branch 'ClickHouse:master' into time_buckets_impl 2024-09-04 23:08:57 +02:00
Yatsishin Ilya
ef2dd93418 crazy stuff 2024-09-04 19:43:39 +00:00
Igor Nikonov
a37b345694
Merge branch 'master' into fix-pr-not-ready-set 2024-09-04 21:36:37 +02:00
avogar
b7b88737ad Treat dynamic/object structure streams as dynamic 2024-09-04 18:37:33 +00:00
avogar
0dad8b088a Fix typo 2024-09-04 18:35:10 +00:00
avogar
68a8b5a3a1 Better 2024-09-04 18:22:20 +00:00
Nikolay Degterinsky
91447fabf7
Fix style 2024-09-04 20:17:59 +02:00
Nikolay Degterinsky
89ca1c0759
Update Lemmatizers.cpp 2024-09-04 20:08:27 +02:00
János Benjamin Antal
9b9db40a0b
Merge pull request #68935 from ClickHouse/fix-mutation-commands-parse-with-modify-column
Fix mutation commands parsing with modify column
2024-09-04 17:37:44 +00:00
Nikolay Degterinsky
c10455ca03
Minor improvements for Lemmatizers 2024-09-04 19:36:16 +02:00
avogar
4b322ee3c5 Reduce memory usage of inserts to JSON by using adaptive write buffer size 2024-09-04 17:12:17 +00:00
János Benjamin Antal
4634b83ab5
Revert "CREATE TABLE AS copy PRIMARY KEY, ORDER BY, and similar clauses." 2024-09-04 18:44:35 +02:00
Alexander Tokmakov
35ab639d1a fix 2024-09-04 18:38:32 +02:00
Alexander Tokmakov
d948de53c6
Merge pull request #68584 from baolinhuang/covered_by_broken_duplicate
Avoid detached covered-by-broken part duplicates
2024-09-04 16:06:42 +00:00
Igor Nikonov
5709dc585f Fix: Not-ready Set with parallel replicas 2024-09-04 15:09:21 +00:00
Yarik Briukhovetskyi
018a62777b
small fixes for Date32 2024-09-04 16:56:07 +02:00
Yarik Briukhovetskyi
6acb5ab5a1
add Date32 support 2024-09-04 15:52:23 +02:00
vdimir
d38551a178
resetOutput 2024-09-04 13:29:45 +00:00
taiyang-li
4bd9e10ce4 Merge branch 'improve_array_zip' of https://github.com/bigo-sg/ClickHouse into improve_array_zip 2024-09-04 21:11:11 +08:00
taiyang-li
fd05f30ee1 change as request 2024-09-04 21:10:32 +08:00
Yarik Briukhovetskyi
f497fde2ca
fix templates 2024-09-04 15:08:12 +02:00
Yarik Briukhovetskyi
945c930322
fix build 2024-09-04 14:53:19 +02:00
Yarik Briukhovetskyi
e16c85d94f
fix suggestions 2024-09-04 14:32:57 +02:00
Anton Popov
10d19b47b7 fix dropping of file cache in CHECK query in case of enabled transactions 2024-09-04 12:18:44 +00:00
Yatsishin Ilya
dff153b59e Null supports no settings 2024-09-04 11:48:22 +00:00
Anton Popov
6042637e67 fix clang-tidy 2024-09-04 11:36:16 +00:00
Kruglov Pavel
54c6aa957d
Merge pull request #67150 from Avogar/dynamic-cast-or-default
Improve castOrDefault from Variant/Dynamic columns
2024-09-04 11:27:35 +00:00
Kruglov Pavel
10893d3ea8
Merge pull request #69109 from Avogar/csv-bool-from-string
Don't infer Bool type from String in CSV when input_format_csv_try_infer_numbers_from_strings = 1
2024-09-04 11:27:21 +00:00
avogar
f926a0fff7 Fix tidy build 2024-09-04 11:25:22 +00:00
Igor Nikonov
3898f52868 Merge remote-tracking branch 'origin/master' into pr-local-plan 2024-09-04 11:15:54 +00:00
Mikhail Artemenko
6c57adee7c add remove recursive entry point 2024-09-04 10:38:03 +00:00
Igor Nikonov
042dbea094
Merge pull request #69146 from ClickHouse/pr-duplicate-announcement
Fix: parallel replicas duplicate announcement request
2024-09-04 10:27:20 +00:00
Yarik Briukhovetskyi
54bdd392ee
fix build 2024-09-04 11:50:09 +02:00
Yarik Briukhovetskyi
efdef8c186
fix build 2024-09-04 11:18:55 +02:00
Robert Schulze
2620325b30
Minor fixups + add a tests 2024-09-04 09:00:56 +00:00
Robert Schulze
c5df9f13bf
Merge remote-tracking branch 'ClickHouse/master' into fix-vector-index 2024-09-04 08:50:53 +00:00
kevinyhzou
49548ed4d5 update the description 2024-09-04 16:40:46 +08:00
Robert Schulze
0b1a0999e3
Some fixups 2024-09-04 08:40:07 +00:00
kevinyhzou
dbf6e6c85e review fix 2024-09-04 16:05:13 +08:00
Robert Schulze
0957075a94
Merge remote-tracking branch 'ClickHouse/master' into vector-index 2024-09-04 07:51:29 +00:00
János Benjamin Antal
26cb783e6f Remove unnecessary nullptr check 2024-09-04 07:44:07 +00:00
Julia Kartseva
7e03621a40 Fix INFILE file format detection for async inserts 2024-09-04 05:45:56 +00:00
Alexander Tokmakov
239cdf908b
Update src/Storages/MergeTree/MergeTreeData.cpp 2024-09-03 23:35:11 +02:00
Yarik Briukhovetskyi
de0e608919
Merge branch 'master' into time_buckets_impl 2024-09-03 23:24:14 +02:00
Alexander Tokmakov
a5a16aa7fa Merge branch 'master' into break_compatibility 2024-09-03 23:13:59 +02:00
Michael Kolupaev
7caacb7c0c Fix progress bar when reading from Memory tables 2024-09-03 20:57:36 +00:00
Igor Nikonov
fc1228e3a4 Update settings history 2024-09-03 20:45:43 +00:00
Igor Nikonov
8629f7e592
Merge branch 'master' into pr-local-plan 2024-09-03 22:43:20 +02:00
Igor Nikonov
ab317fb3ec
Merge branch 'master' into pr-duplicate-announcement 2024-09-03 21:55:17 +02:00
Arthur Passos
d9a4964cd9 Merge branch 'master' into multi_auth_methods 2024-09-03 15:01:59 -03:00
Yarik Briukhovetskyi
4fad12ecb0
rewrite the main logic 2024-09-03 19:53:28 +02:00
Kruglov Pavel
17baa4f51b
Merge pull request #68463 from Avogar/dynamic-json-distinct-aggregate-functions
Add aggregate functions distinctDynamicTypes/distinctJSONPaths/distinctJSONPathsAndTypes
2024-09-03 17:51:51 +00:00
Michael Stetsyuk
ecfe9d9782 make replicated database creation operations idempotent 2024-09-03 17:39:36 +00:00
Konstantin Bogdanov
dc0b491f11
Merge pull request #69130 from m4xxx1m/hostname-validation-config
Add validation of IP addresses and domains in settings
2024-09-03 17:09:17 +00:00
NikBarykin
83854cf293 Make method of DatabaseFactory 2024-09-03 19:13:05 +03:00
NikBarykin
e874c6e1de Fix typo 2024-09-03 18:58:39 +03:00
Raúl Marín
dd6e818c68
Merge pull request #69175 from azat/revert-client-log_comment-file
Revert "Merge pull request #57191 from azat/client-log_comment-file"
2024-09-03 15:47:54 +00:00
Alexander Gololobov
472e6eb856 typo 2024-09-03 17:16:43 +02:00
Konstantin Bogdanov
e50a8b4f61
Merge pull request #68975 from ClickHouse/fix-encoding-with-progress-headers
`Content-Encoding` was not sent on progress
2024-09-03 15:09:00 +00:00
Alexander Gololobov
8361724539 Build pipeline for next column for prefetching 2024-09-03 17:02:25 +02:00
Alexander Gololobov
e94a2875de
Merge pull request #68954 from ClickHouse/processors_profile_log_plan_step_name
Add plan_step_name and plan_step_description columns to system.processors_profile_log
2024-09-03 14:53:08 +00:00
Alexander Tokmakov
f9d7080711
Merge pull request #68896 from tuanpach/add-identifier-quoting-style-settings
Add identifier quoting style settings
2024-09-03 13:52:37 +00:00
NikBarykin
03ccf05d14 Allow custom settings in database engine 2024-09-03 16:14:15 +03:00
Alexander Gololobov
a1cec53b7c Fix updateOutputStream and Traits 2024-09-03 14:57:33 +02:00
Alexander Gololobov
6a6935cb84 Cleanup 2024-09-03 14:57:19 +02:00
Anton Popov
34c14a6493
Merge pull request #68837 from CurtizJ/fix-async-insert-alter
Fix async inserts with `ALTER ADD/MODIFY COLUMN`
2024-09-03 12:37:27 +00:00
Igor Nikonov
51eef72624
Merge branch 'master' into pr-duplicate-announcement 2024-09-03 13:31:44 +02:00
Igor Nikonov
d0d2509c69
Merge branch 'master' into pr-local-plan 2024-09-03 13:31:36 +02:00
Han Fei
1b29a89107 Merge branch 'master' into fix-typo-in-actionsdag 2024-09-03 11:29:19 +00:00
vdimir
45556278c9
Fix possible timeouts in sh tests with tsan, att. 2 2024-09-03 11:06:28 +00:00
Kruglov Pavel
cec5037c4d
Update Configuration.h 2024-09-03 12:05:26 +02:00
Kruglov Pavel
6273c7ca80
Merge pull request #69150 from Avogar/better-json-alias-check
Don't create Object type if use_json_alias_for_old_object_type=1 but allow_experimental_object_type=0
2024-09-03 09:58:23 +00:00
李扬
5832f982d6
Merge branch 'ClickHouse:master' into improve_array_zip 2024-09-03 17:48:13 +08:00
marco-vb
919f51533a Fixed style issues. 2024-09-03 09:37:03 +00:00
Raúl Marín
7ba6eff181
Merge pull request #69148 from Algunenano/rmt_retries
RMT: Do not block retries when establishing a new keeper connection
2024-09-03 09:35:16 +00:00
vdimir
5d3d2c2139
Merge pull request #66926 from ClickHouse/vdimir/multiple_joins_with_storage_join
Analyzer: Storage Join support joining with nullable columns
2024-09-03 06:59:47 +00:00
Alexander Gololobov
d28cba981c Fix clang_tidy 2024-09-03 08:59:01 +02:00
Azat Khuzhin
300d06b995 Revert "Merge pull request #57191 from azat/client-log_comment-file"
The problem with this patch is that it breaks readonly users.

There are possible other ways to fix this, but it has other downsides:
- readonly detection with getSetting - one extra query + code
  complexity, don't think that it worth it
- add is_hint for each setting (like is_important) - this will blow the
  settings structure and requires protocol changes, and even though this
  could be useful in other places, i.e. play UI, not sure that this worth
  either

So for now let's simply revert it.

This reverts commit fde14f0daf, reversing
changes made to f636dea879.
2024-09-03 08:42:14 +02:00
taiyang-li
aaf62aca73 fix uts 2024-09-03 11:59:54 +08:00
Constantine Peresypkin
ca514c6556
fix: Content-Encoding was not sent on progress
fixes: #64802
2024-09-03 02:13:23 +02:00
Konstantin Bogdanov
009cccd20a
Merge pull request #68979 from ClickHouse/put-strange-trash-back
Revert "Fix strange trash"
2024-09-02 22:07:01 +00:00
jsc0218
379d551832
Merge pull request #69076 from sakulali/create_as
CREATE TABLE AS copy PRIMARY KEY, ORDER BY, and similar clauses.
2024-09-02 20:56:58 +00:00
Alexander Gololobov
48cacd6f31 Use query plan for column vertical merges 2024-09-02 22:36:42 +02:00
Alexander Gololobov
13f4eb3fac Fix for graphite merge mode 2024-09-02 22:24:53 +02:00
Alexey Korepanov
ba9c8a1625 Merge branch 'master' into output-format-json-compact-with-progress 2024-09-02 22:22:57 +02:00
avogar
b7e1dda2e0 Remove unneded code 2024-09-02 20:13:44 +00:00
avogar
d281333db2 Better process of object storage arguments 2024-09-02 20:11:00 +00:00
m4xxx1m
37516a4cc2 Add tests 2024-09-02 22:02:24 +03:00
marco-vb
547276780c Removed unnecessary code and restored test certificates. 2024-09-02 17:14:10 +00:00
Alexander Gololobov
7e444136bb Use QueryPlan for horizontal part of merge 2024-09-02 18:27:24 +02:00
Alexander Tokmakov
d65b298268
Update src/Storages/StorageReplicatedMergeTree.cpp 2024-09-02 18:08:46 +02:00
Anton Popov
8a5454a548 slightly better 2024-09-02 15:41:35 +00:00
Anton Popov
46702f6a1e Merge remote-tracking branch 'upstream/master' into HEAD 2024-09-02 14:52:08 +00:00
Anton Popov
2e4f6f26f0 fix after merge 2024-09-02 14:26:25 +00:00
Anton Popov
71d03f58bb
Merge branch 'master' into fix-async-insert-alter 2024-09-02 16:23:15 +02:00
Sergei Trifonov
1f5082ee8a
Merge pull request #65182 from ClickHouse/s3-streams-scheduler
IO scheduling on HTTP session level
2024-09-02 14:17:58 +00:00
Igor Nikonov
d064692125 Merge remote-tracking branch 'origin/master' into pr-local-plan 2024-09-02 14:06:46 +00:00
vdimir
dfe8508a3a
Merge branch 'master' into vdimir/multiple_joins_with_storage_join 2024-09-02 16:05:13 +02:00
vdimir
cfc931160d
Merge branch 'master' into vdimir/fix_function_printf_style 2024-09-02 16:05:02 +02:00
Kruglov Pavel
218e601ef8
Better exception message 2024-09-02 15:35:56 +02:00
avogar
457db103c0 Don't create Object type if use_json_alias_for_old_object_type=1 but allow_experimental_object_type=0 2024-09-02 13:20:27 +00:00
avogar
a3522072d4 Respect format settings in Values format during conversion from expression to the destination type 2024-09-02 13:09:22 +00:00
Kruglov Pavel
0cb8c9f148
Fix typo 2024-09-02 14:58:09 +02:00
avogar
d7aaf053f9 Fix propogating structure argument in s3Cluster 2024-09-02 12:50:12 +00:00
Raúl Marín
8225acae3a RMT: Do not block retries when establishing a new keeper connection 2024-09-02 14:48:54 +02:00
Raúl Marín
b409c0657d
Merge pull request #68950 from Algunenano/anyHeavy_merge
Fix possible wrong result during anyHeavy state merge
2024-09-02 12:45:19 +00:00
Igor Nikonov
f0fa895e7c Merge remote-tracking branch 'origin/master' into pr-duplicate-announcement 2024-09-02 12:44:04 +00:00
Igor Nikonov
4b4976c9b0 Fix 2024-09-02 12:37:53 +00:00
Sergei Trifonov
64af7363c2
Merge pull request #68674 from filimonov/thread_pool_metrics
Thread pool metrics
2024-09-02 12:19:27 +00:00
Alexey Korepanov
33512a0d6e Merge branch 'master' into output-format-json-compact-with-progress 2024-09-02 13:32:52 +02:00
avogar
ed2da41a79 Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-json-distinct-aggregate-functions 2024-09-02 10:41:49 +00:00
avogar
3be359bf11 Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-cast-or-default 2024-09-02 10:21:24 +00:00
Sergei Trifonov
0f4b296295
Merge pull request #69081 from ClickHouse/fix-progress-indication-race
Fix ProgressIndication data race on `cancelQuery()`
2024-09-02 09:58:31 +00:00
Yarik Briukhovetskyi
1b67fde591
Merge pull request #67436 from iceFireser/master
Fix the problem that alter modfiy order by causes inconsistent metadata
2024-09-02 09:54:38 +00:00
Yarik Briukhovetskyi
f89290cdbf
Merge pull request #68874 from liuneng1994/support-datetrunc-on-date32
Support Date32 on dateTrunc and toStartOfInterval
2024-09-02 09:26:54 +00:00
Sergei Trifonov
579b891c57
Merge pull request #69132 from ClickHouse/serxa-patch-3
Fix locking in UserDefinedSQLObjectsZooKeeperStorage.cpp
2024-09-02 09:08:33 +00:00
Igor Nikonov
1d1f41521e
Merge branch 'master' into pr-local-plan 2024-09-02 11:07:07 +02:00
Yarik Briukhovetskyi
a1747493ac
Merge pull request #69066 from yariks5s/sandbox_
Path normalization in StorageFile
2024-09-02 08:27:41 +00:00
János Benjamin Antal
64d463bb09 Merge remote-tracking branch 'origin/master' into fix-mutation-commands-parse-with-modify-column 2024-09-02 07:50:57 +00:00
taiyang-li
450730cef8 fix failed uts 2024-09-02 12:16:41 +08:00
taiyang-li
1cd4af1564 add new function arrayZipUnaligned 2024-09-02 11:55:41 +08:00
flynn
f9538bbe49 Merge branch 'master' of github.com:ClickHouse/ClickHouse into fix-vector-index 2024-09-02 03:34:22 +00:00
Sergei Trifonov
fba6620dc4
Fix locking in UserDefinedSQLObjectsZooKeeperStorage.cpp 2024-09-01 23:43:05 +02:00
Igor Nikonov
37a9ff451e
Merge branch 'master' into lift-up-union-expr-desc 2024-09-01 17:51:09 +02:00
iceFireser
79776dbbad
Merge branch 'ClickHouse:master' into master 2024-09-01 09:34:25 +08:00
Yakov Olkhovskiy
44f76ed713
Merge pull request #69123 from wxybear/fix_explain_insert_query_multiquery_mode
Fix analyze explain ast insert query in multiquery mode
2024-08-31 21:07:43 +00:00
Yakov Olkhovskiy
b6ea3442b4
Merge pull request #69032 from alexon1234/include_real_time_execution_in_http_header
Add RealTimeMicroseconds to HTTP Header X-ClickHouse-Summary
2024-08-31 20:47:23 +00:00
wxybear
b066760a21 fix: explainedQuery nullptr && 02504_explain_ast_insert 2024-08-31 22:18:33 +08:00
serxa
c6aa12feae Merge branch 'master' into s3-streams-scheduler 2024-08-31 12:13:38 +00:00
Igor Nikonov
425a93e360 Fix 2024-08-31 12:12:32 +00:00
serxa
34d8a20307 Merge branch 'master' into fix-progress-indication-race 2024-08-31 12:12:23 +00:00
avogar
2287f280da Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-json-distinct-aggregate-functions 2024-08-31 11:36:23 +00:00
wxybear
c702d2581e fix: handle insert query in explain queries in multiquery mode 2024-08-31 14:50:35 +08:00
liuneng
cd1685d409 fix error message 2024-08-31 10:49:50 +08:00
liuneng
5e0000c4ca add test case and doc 2024-08-31 10:49:50 +08:00
liuneng
74f99d1f07 support datetrunc and toStartOfxxx on date32 2024-08-31 10:49:50 +08:00
Igor Nikonov
5b4b08b711 Merge remote-tracking branch 'origin/master' into pr-local-plan 2024-08-30 20:06:03 +00:00
Igor Nikonov
3c29f27dd2 Fix 03228_pr_subquery_view_order_by 2024-08-30 20:04:43 +00:00
Arthur Passos
a22f9fd91f Merge branch 'master' into multi_auth_methods 2024-08-30 16:59:40 -03:00
serxa
9f96d18060 cleanup 2024-08-30 19:33:34 +00:00
serxa
3675e83a3f Fix data race in ResourceGuard 2024-08-30 19:27:26 +00:00
serxa
30dd82324a revert wrong data race fix 2024-08-30 19:26:59 +00:00
Yakov Olkhovskiy
950ca28f53
Merge pull request #67805 from sunny19930321/feature/add-delete-from-in-partition-command
Lightweight Delete In Partition
2024-08-30 15:44:46 +00:00
Han Fei
a812cc0809
Merge pull request #69080 from hanfei1991/hanfei/fix-logical-error-async-insert-dup-offsets
fix logical error for empty async inserts
2024-08-30 15:41:25 +00:00
avogar
cf87893758 Don't infer Bool type from String in CSV when input_format_csv_try_infer_numbers_from_strings=1 2024-08-30 15:28:53 +00:00
Nikolai Kochetov
84d37c1bab
Merge pull request #69035 from VOkunev/master
Support for the Spanish language in the embedded dictionaries
2024-08-30 11:14:08 +00:00
flynn
af7adfe4b2 Remove unused code 2024-08-30 09:03:23 +00:00
flynn
c5b92413ca Fix vector similarity index does not work for cosineDistance 2024-08-30 08:28:31 +00:00
flynn
6ad8e5558a Fix typo 2024-08-30 07:25:25 +00:00
sunny19930321
6143f99f7a fix: change alter query to ternary expression 2024-08-30 15:02:09 +08:00
liuneng
f7fda2471c fix typo 2024-08-30 14:09:31 +08:00
flynn
a6fdc81bdc Merge branch 'master' of github.com:ClickHouse/ClickHouse into vector-index 2024-08-30 03:19:29 +00:00
Yarik Briukhovetskyi
69c6419f6d
Merge branch 'ClickHouse:master' into sandbox_ 2024-08-30 00:58:38 +02:00
serxa
f5a88171a6 Fix ProgressIndication data race on cancelQuery() 2024-08-29 20:37:07 +00:00
Kirill Nikiforov
563f3a4880
Merge remote-tracking branch 'origin/master' into feat/59376 2024-08-29 23:20:13 +04:00
Kirill Nikiforov
79c01e717f
rm comment, add docs 2024-08-29 23:15:39 +04:00
avogar
25f31f9149 Fix conversion for Dynamic, add more tests 2024-08-29 18:15:05 +00:00
Han Fei
1772a877ad fix logical error in async inserts 2024-08-29 20:10:34 +02:00
Кирилл Гарбар
b2c4b771d8 Minor fixes 2024-08-29 19:33:04 +03:00
sakulali
aad57f438c CREATE TABLE AS copy PRIMARY KEY, ORDER BY, and similar clauses. 2024-08-30 00:16:10 +08:00
Arthur Passos
f9b845486a Merge branch 'master' into multi_auth_methods 2024-08-29 13:12:19 -03:00
Anton Popov
a4ddca773b return back num_bytes 2024-08-29 16:03:41 +00:00
Кирилл Гарбар
edf4e09fb2 Remove stale moving parts without zookeeper 2024-08-29 18:46:06 +03:00
Anton Popov
4499f20ca8 better code in AsynchronousInsertQueue 2024-08-29 14:38:59 +00:00
Anton Popov
b3dae16fd4
Merge pull request #68951 from CurtizJ/fix-subcolumns-mv
Fix materialized views with `optimize_functions_to_subcolumns`
2024-08-29 13:41:56 +00:00
Yarik Briukhovetskyi
653b0802c0
init 2024-08-29 13:17:27 +02:00
avogar
83e75f96c8 Merge branch 'master' of github.com:ClickHouse/ClickHouse into dynamic-cast-or-default 2024-08-29 11:16:27 +00:00
Nikolai Kochetov
70ae3314c6
Merge pull request #68744 from ClickHouse/fix-grouping-sets-mergine-aggregated
Fix merging of aggregated data for grouping sets.
2024-08-29 11:02:55 +00:00
flynn
d88aa3952d Disable alter table add vector similarity index if setting does not enabled 2024-08-29 10:56:26 +00:00
baolin.hbl
7d56c8bd43 Avoid detached covered-by-broken part duplicates
Problem:
When a broken part is found during the startup, it will clone the parts which are
covered by the broken part, to the detached directory (with the 'covered-by-broken' prefix).
A part may be covered by multiple merged parts, which will result in multiple clones, which
leads to path conflicts and further attempts to clone to the try-n directory. If n exceeds 9,
the clone is abandoned and the table is marked as read-only.

pull#41981 tried fixed the problem, but the fix is incomplete. The metadata_version.txt file
is deleted during covered-by-broken clone. As a result,
looksLikeBrokenDetachedPartHasTheSameContent finds differences during part comparison.

Fix:
covered-by-broken retain metadata_version.txt file when cloning
2024-08-29 07:55:23 +00:00
Alejandro
88c99fa063 Do not depend on the response of getInfo for increasing the RealTimeMicroseconds 2024-08-29 08:43:01 +01:00
JackyWoo
a9b6c04705 Merge branch 'master' into add_statistics_minmax
# Conflicts:
#	src/Storages/Statistics/Statistics.cpp
2024-08-29 14:35:33 +08:00
李扬
3d04f3d33a
Merge branch 'ClickHouse:master' into orc_dict_encode 2024-08-29 10:16:06 +08:00
Tuan Pham Anh
57ba0f0b32 format gtest_Parser.cpp 2024-08-29 00:31:33 +00:00
Alejandro
91724c29a4 Only increase if profile_counters is intialized 2024-08-28 23:26:13 +01:00
Konstantin Bogdanov
589a63a256
Merge pull request #69037 from ClickHouse/add-system-processor-to-short-fault
Add CPU arch to short fault info
2024-08-28 20:14:17 +00:00
Alejandro
100c560cb8 Added RealTimeMicroseconds event 2024-08-28 20:37:49 +01:00
Konstantin Bogdanov
30eca0f4a0
Lint harder 2024-08-28 20:59:23 +02:00
Konstantin Bogdanov
0815a85e2b
Lint 2024-08-28 20:59:22 +02:00
Konstantin Bogdanov
896b1726e7
Add a comment 2024-08-28 20:59:21 +02:00
Konstantin Bogdanov
ab567bad13
What if I just strip quotes 2024-08-28 20:59:20 +02:00
Konstantin Bogdanov
0dacd16947
Update SettingsFields.h 2024-08-28 20:59:19 +02:00
Konstantin Bogdanov
3f9f70d27d
Revert "Fix strange trash"
This reverts commit aee9612e51.
2024-08-28 20:59:17 +02:00
Konstantin Bogdanov
b6966f6c88
Use Poco 2024-08-28 18:26:26 +02:00
Konstantin Bogdanov
ca13b13d81
Add CPU arch to short fault info 2024-08-28 17:54:42 +02:00
okunev
42039331ad Support for the Spanish language in the embedded dictionaries. 2024-08-28 17:47:43 +02:00
Alejandro
41a4dd7705 Rename variable 2024-08-28 16:09:23 +01:00
avogar
0aba986372 Address review comments 2024-08-28 15:06:05 +00:00
Kruglov Pavel
a1c9cc471d
Apply suggestions from code review
Co-authored-by: János Benjamin Antal <antaljanosbenjamin@users.noreply.github.com>
2024-08-28 16:51:45 +02:00
Alejandro
644cfb27d6 Add RealTimeMicroseconds to HTTP Header X-ClickHouse-Summary 2024-08-28 15:34:34 +01:00
taiyang-li
5b3ca6b2b9 allow unsligned arrays in arrayZip 2024-08-28 22:14:43 +08:00
János Benjamin Antal
f109c141b0 Add safety check 2024-08-28 13:30:41 +00:00
János Benjamin Antal
f76e6ecdaf Make check more specific 2024-08-28 13:30:25 +00:00
János Benjamin Antal
0d463b839e Remove unused parser 2024-08-28 13:29:41 +00:00
János Benjamin Antal
a0fa693f0b Add safety assertion 2024-08-28 13:20:58 +00:00
János Benjamin Antal
3c6b2a48c3 Prevent specifying properties in MODIFY COLUMN queries when using REMOVE/RESET SETTING/MODIFY SETTING 2024-08-28 13:05:43 +00:00
李扬
553c309477
Merge branch 'master' into orc_dict_encode 2024-08-28 21:00:18 +08:00
taiyang-li
ae582120ae change as request 2024-08-28 20:56:33 +08:00
Arthur Passos
b29e00b838 add space 2024-08-28 09:17:04 -03:00
Kruglov Pavel
2c0ddd10a0
Fix build 2024-08-28 13:49:48 +02:00
Kruglov Pavel
e7d63b5f79
Merge pull request #68953 from Avogar/fix-dynamic-unitialized-value
Don't use serializations cache in const Dynamic column methods
2024-08-28 11:39:00 +00:00
Kruglov Pavel
b1e7c067c9
Merge pull request #68955 from Avogar/fix-json-type-parsing-null-as-default
Fix JSON type parsing with nulls as defaults
2024-08-28 11:38:49 +00:00
vdimir
31a376953d
Merge pull request #68644 from linkwk7/fix_full_text_with_multi_col
Fix wrong row id when using full text index with multi column
2024-08-28 11:11:37 +00:00
Kseniia Sumarokova
fd3fca9f66
Merge pull request #68901 from jrdi/system-projections
Add system.projections table
2024-08-28 09:36:23 +00:00
Robert Schulze
cbf60f83b2
Merge pull request #68822 from bigo-sg/improve_upper_lower
Speed up functions `lowerUTF8`/`upperUTF8`
2024-08-28 08:53:30 +00:00
Robert Schulze
9fb4c23c06
Merge pull request #68678 from rschu1ze/usearch-2.14
Vector similarity index: make `bf16` the default quantization
2024-08-28 08:45:02 +00:00
Tuan Pham Anh
e0b9c0f14f Remove settings update in ASTTableOverride::formatImpl 2024-08-28 03:47:27 +00:00
Arthur Passos
0b29aef1a0 remove extra dot from ex message 2024-08-27 15:25:41 -03:00
Kruglov Pavel
59d821e164
Merge pull request #68793 from Avogar/json-alias-runtime
Check setting use_json_alias_for_old_object_type in runtime
2024-08-27 17:10:23 +00:00
Nikolai Kochetov
a1517cb9d6 Refactor a bit and add a comment. 2024-08-27 16:56:03 +00:00
Anton Popov
f7ed0912db
Merge pull request #68741 from CurtizJ/fix-async-insert-query-params
Support query parameters in async inserts
2024-08-27 16:10:59 +00:00
Nikolai Kochetov
a7584bbb80 Remove comments. 2024-08-27 16:07:31 +00:00
Anton Popov
ac91471042 add comment 2024-08-27 16:06:12 +00:00
Arthur Passos
a0ab22e031 style 2024-08-27 13:01:10 -03:00
Nikolai Kochetov
2b495e22cd Fixing a test. 2024-08-27 15:38:52 +00:00
Arthur Passos
6f806124a3 Merge branch 'master' into multi_auth_methods 2024-08-27 12:24:53 -03:00
Arthur Passos
a65d175a81 change parsing logic a bit 2024-08-27 12:23:42 -03:00
Nikolai Kochetov
90cc619966 Better care about grouping keys order for GROUPING SETS. 2024-08-27 15:06:43 +00:00
Tuan Pham Anh
9ae0d51613 Reformat the code, pass variable names in comments when calling 2024-08-27 15:02:02 +00:00
vdimir
bb22736bc3
Merge pull request #68867 from ucasfl/url-engine
Add virtual column _headers for url table engine
2024-08-27 13:27:19 +00:00
János Benjamin Antal
964641a28c
Merge pull request #67583 from depressed-pho/fix-fromModifiedJulianDay
Fix the upper bound of function fromModifiedJulianDay()
2024-08-27 13:20:57 +00:00
Alexander Gololobov
2a68ad8704
Fill plan_step_name and plan_step_description 2024-08-27 15:12:01 +02:00
avogar
88b72238c8 Fix JSON type parsing with nulls as defaults 2024-08-27 13:09:19 +00:00
Han Fei
a0e9412c72
Merge pull request #68499 from denis-hananein/fix-68239-sample-n
Fix 68239 sample n
2024-08-27 13:05:51 +00:00
Alexander Gololobov
cc701c92b4 Add plan_step_name and plan_step_description columns to system.processors_profile_log 2024-08-27 15:05:05 +02:00
avogar
6ee197ea59 Don't use serializations cache in const Dynamic column methods 2024-08-27 13:01:37 +00:00
iceFireser
55eb2953c7
Merge branch 'ClickHouse:master' into master 2024-08-27 20:51:47 +08:00
Anton Popov
c7d0d790e2 fix materialized views with optimize_functions_to_subcolumns 2024-08-27 12:38:37 +00:00
Daniil Ivanik
e0dc32bc61
Merge pull request #68210 from ClickHouse/divanik/add_local_and_azure_iceberg_support
Support partial Iceberg reading in azure and local storages
2024-08-27 11:52:43 +00:00
Raúl Marín
c1a83f4734 Fix possible wrong result during anyHeavy state merge 2024-08-27 13:45:25 +02:00
Alexander Tokmakov
60a0ea5746
Merge pull request #68366 from ClickHouse/check_merge_entries
Check that merge entries are valid
2024-08-27 11:17:11 +00:00
Igor Nikonov
98562b0d15
Merge pull request #67700 from ClickHouse/asan-invalid-shared-context-access
Fix(asan): access destroyed shared context from handleCrash()
2024-08-27 10:55:56 +00:00
Raúl Marín
e3ef11e505
Merge pull request #67983 from Algunenano/flaky_win_view
Fix window view missing blocks due to slow flush to view
2024-08-27 10:35:09 +00:00
Kruglov Pavel
e13e537a06
Merge pull request #68128 from RodolpheDuge/odbc_http_retry_from_configuration
odbc: get http_max_tries  from server configuration
2024-08-27 10:32:40 +00:00
János Benjamin Antal
1523df6ec3 Ignore MODIFY_COLUMN commands without column type when parsing mutation commands 2024-08-27 10:31:11 +00:00
alesapin
df44c2a4ff
Merge pull request #68897 from ClickHouse/revert-59173-fix_prewhere_without_columns
Revert "Fix prewhere without columns and without adaptive index granularity (almost w/o anything)"
2024-08-27 10:15:35 +00:00
Tuan Pham Anh
69cf54192c 1) Add tests for the identifier quoting style setting. 2) Update uni-test for table overrides 2024-08-27 09:38:21 +00:00
taiyang-li
aa4688a982 fix style 2024-08-27 12:25:22 +08:00
jsc0218
6289c65e02
Merge pull request #62364 from cangyin/fix-projection-merge
Rebuild projection for merges that reduces rows
2024-08-27 00:59:42 +00:00
jsc0218
033b9cc28c
Merge pull request #68835 from jsc0218/FixFuncTypo
Fix Function Typo
2024-08-26 21:06:07 +00:00
Jordi
c43fcce77d Fix style check 2024-08-26 20:04:19 +02:00
Alexander Tokmakov
936bbe7d0d handle trash parts correctly 2024-08-26 20:02:03 +02:00
Kseniia Sumarokova
8b2db6276c
Merge pull request #68836 from ClickHouse/fix-delta-lake-bug-in-schema-parsing
Fix complex types metadata parsing in DeltaLake
2024-08-26 17:44:22 +00:00
Jordi
cf58ce217a Add system.projections table 2024-08-26 19:20:26 +02:00
Raúl Marín
e8d9fbdd1f Merge remote-tracking branch 'blessed/master' into flaky_win_view 2024-08-26 17:49:22 +02:00
Alexander Gololobov
c27513e540
Revert "Fix prewhere without columns and without adaptive index granularity (almost w/o anything)" 2024-08-26 17:38:07 +02:00
Tuan Pham Anh
8e6de7e767 1) Fix: move new setting to 24.9 key. 2) Fix: fource quoting dictionary attribute names 2024-08-26 15:26:21 +00:00
Tuan Pham Anh
32e995acbb Update settings change history version 2024-08-26 15:26:21 +00:00
Tuan Pham Anh
e1d66b9e26 Add output_format_always_quote_identifiers into the settings 2024-08-26 15:26:21 +00:00
Tuan Pham Anh
d6ca589ebe Treat PROJECTION, DICTIONARY, COLUMN, INDEX names as identifiers when formating 2024-08-26 15:26:21 +00:00
Tuan Pham Anh
5bad631d46 Add config for outout_format_identifers_quoting_style 2024-08-26 15:26:21 +00:00
Nikolai Kochetov
9d9ef69196 Fixing check. 2024-08-26 15:21:48 +00:00
Nikolai Kochetov
5f587af078 Review fix. 2024-08-26 15:15:16 +00:00
vdimir
e7d17573e1
Add assert src/Storages/StorageURL.cpp 2024-08-26 16:55:45 +02:00
Nikolai Kochetov
42e7cc476e Fixing typos. 2024-08-26 14:48:29 +00:00