Commit Graph

115897 Commits

Author SHA1 Message Date
helifu
515d30caea Add test case. 2023-05-25 09:37:02 +08:00
helifu
802b63f2ab Add 'initial_query_id' field for system.processors_profile_log
Facilitate profile data association and aggregation for the same query
2023-05-25 09:37:02 +08:00
Zhiguo Zhou
773a5bbbaa Optimize predicate with toYear converter
The date converters, such as toYear, are widely used in the where
clauses of the SQL queries, however, these conversions are often
expensive due to the complexity of the calendar system.

The function preimage is found an optimization for the predicates
with the converters. Given a predicate, toYear(c) = y, we could
convert it to its equivalent form: c >= b AND c <= e, where b is
"y-01-01" and e is "y-12-31". The similar transformation applies
to other comparisons (<>, <, >, <=, <=).

This commit implemented the above transformation at the AST level
by adding a new pass in the TreeOptimizer and a new AST visitor
for in-place replacing the predicates of toYear with the converted
ones.
2023-05-25 09:11:51 +08:00
Mikhail f. Shiryaev
a9d5b68946
Merge pull request #50197 from ClickHouse/fix-codebrowser
Fix codebrowser by using clang-15 image
2023-05-24 23:39:13 +02:00
Mikhail f. Shiryaev
e117347ca0
Attempt to fix codebrowser with using clang-15 2023-05-24 23:15:38 +02:00
Kseniia Sumarokova
2e17503d36
Merge pull request #50187 from kssenii/fix-pg-source
Fix PostgreSQLSource reading all unread the data in onFinish
2023-05-24 22:51:48 +02:00
Alexander Gololobov
8996fcb090
Merge pull request #50193 from ClickHouse/fix_for_replicate_delete
Don't replicate delete through DDL worker if there is just 1 shard
2023-05-24 22:45:00 +02:00
Alexander Tokmakov
2c0c1ba4af
add comments to build reports (#50200) 2023-05-24 23:29:36 +03:00
Sorck
034a8bd6b3
Fix: typo in last_value.md (#50148)
Correct typo in page title

Co-authored-by: Dan Roscigno <dan@roscigno.com>
2023-05-24 22:14:01 +02:00
Suzy Wang
49afecc28b
Merge branch 'master' into fvt_unknown_result 2023-05-24 15:58:37 -04:00
Suzy Wang
62fc5bb3eb get detailed error instead of unknown result 2023-05-24 12:54:30 -07:00
Dan Roscigno
026a15d8a7
Update dns_max_consecutive_failures docs (#50196)
Co-authored-by: Nikita Mikhaylov <mikhaylovnikitka@gmail.com>
2023-05-24 21:01:59 +02:00
Mikhail f. Shiryaev
13aebae511
Merge pull request #50202 from ClickHouse/cherry-pick-to-cloud
Automatic backports of important fixes to cloud-release
2023-05-24 20:21:04 +02:00
Alexander Sapin
3e69648268 Fxi moar 2023-05-24 20:02:03 +02:00
Alexander Sapin
1c627fbcab Fxi 2023-05-24 20:01:36 +02:00
pufit
8875b98e2a Added default value for --from-repo arg 2023-05-24 13:47:50 -04:00
Alexander Sapin
4a4246a8cc Dedup 2023-05-24 19:39:53 +02:00
Alexander Sapin
5676a2c880 Small refactoring of encrypted disk 2023-05-24 19:34:51 +02:00
pufit
8df7a69147
Automatic backports of important fixes to cloud-release
* Automatic backports to cloud-release

---------

Co-authored-by: robot-clickhouse <robot-clickhouse@users.noreply.github.com>
2023-05-24 18:59:18 +02:00
Dan Roscigno
e5d6c90be0
Merge pull request #50201 from ClickHouse/DanRoscigno-patch-5
Update CREATE FUNCTION docs
2023-05-24 12:45:09 -04:00
Dan Roscigno
0219f78630
Testing algolia index 2023-05-24 12:40:12 -04:00
Alexander Sapin
2a3362e0c8 Implement encrypted disk transaction and fix shared merge tree with encrypted disk 2023-05-24 17:44:40 +02:00
Dan Roscigno
2ac600b642
Merge pull request #50194 from DanRoscigno/zstd_window_max_docs
add docs for zstd_window_log_max
2023-05-24 11:29:42 -04:00
DanRoscigno
d4927e4fe5 add docs 2023-05-24 10:51:43 -04:00
Dan Roscigno
9b014eb1d2
Merge pull request #49512 from DanRoscigno/polygon-docs
Add docs for polygon functions
2023-05-24 10:37:01 -04:00
DanRoscigno
9f349e2102 add params 2023-05-24 10:35:20 -04:00
Dan Roscigno
c5b521498a
Merge pull request #50191 from den-crane/patch-69
Doc. Remove excessive tuple from ip_trie description
2023-05-24 10:15:28 -04:00
Alexander Gololobov
de0a074545 Don't replicate delete through DDL worker if there is just 1 shard 2023-05-24 16:10:31 +02:00
Dan Roscigno
99adef63e0
Merge pull request #50111 from tsolodov/url-function-docs
update url table function docs
2023-05-24 09:57:34 -04:00
Denny Crane
8a00be69b3
Update index.md 2023-05-24 10:40:33 -03:00
ltrk2
f76f989b53 Implement a uniform way to query processor core IDs 2023-05-24 13:33:05 +00:00
helifu
62208feaf3 Add a new line to the reference file 2023-05-24 21:08:25 +08:00
kssenii
07eedc8ef1 Fix 2023-05-24 15:03:11 +02:00
Dan Roscigno
9082e7feec
Merge branch 'master' into url-function-docs 2023-05-24 09:03:01 -04:00
Dan Roscigno
c2f6999aca
Merge pull request #50157 from den-crane/Doc/greatest_least
Doc. Move least/greatest to conditional-functions
2023-05-24 09:01:58 -04:00
alesapin
7c0c49c9d2
Merge pull request #50154 from hanfei1991/hanfei/fix-modify-order-by
do not allow modify order by when there are no order by cols
2023-05-24 15:01:38 +02:00
Dan Roscigno
c53bdc6927
Merge branch 'master' into polygon-docs 2023-05-24 08:56:46 -04:00
helifu
4724745b4c Add the 'partitions' field description in docs 2023-05-24 20:42:31 +08:00
helifu
880745453d small update for test case 2023-05-24 20:42:31 +08:00
helifu
e138289fbf Test the 'partitions' field of system.query_log 2023-05-24 20:42:31 +08:00
helifu
2255b0287a Add 'partitions' field for system.query_log 2023-05-24 20:42:31 +08:00
Igor Nikonov
2f5ed81e0d
Merge branch 'master' into fill_with_by_sorting_prefix_2 2023-05-24 14:40:44 +02:00
Alexander Tokmakov
ffdd916694
Merge pull request #50180 from ClickHouse/tavplubix-patch-6
Update an exception message
2023-05-24 15:01:50 +03:00
Kruglov Pavel
9545100c9e
Merge pull request #45427 from attack204/urlCluster
Add urlCluster table function and refactor all *Cluster table functions
2023-05-24 13:32:56 +02:00
Alexander Tokmakov
486153d581
Update MergeTreeData.cpp 2023-05-24 13:33:28 +03:00
Kseniia Sumarokova
91eb3ad2bc
fix clang-tidy build 2023-05-24 12:14:15 +02:00
vdimir
3f892ceb12
Merge pull request #49816 from bigo-sg/grace_hash_reserve_hash_table 2023-05-24 11:48:19 +02:00
LiuYangkuan
0df4164180 Merge remote-tracking branch 'origin/master' into cluster_discovery 2023-05-24 17:37:01 +08:00
Robert Schulze
32ffa2ae0b
Merge pull request #50159 from azat/bump-vectorscan
Switch to upstream repository of vectorscan
2023-05-24 09:47:00 +02:00
robot-ch-test-poll2
2b48a483f2
Merge pull request #50151 from ClickHouse/Avogar-patch-1
Change fields destruction order in AsyncTaskExecutor
2023-05-24 03:49:32 +02:00