serxa
fc223aa673
replace throttler algorithm by token bucket
2022-10-25 23:52:31 +00:00
Anton Popov
79889198b1
fix style check
2022-10-25 23:03:37 +00:00
Anton Popov
d8b09b430f
add comments
2022-10-25 22:27:11 +00:00
Anton Popov
c4d4f2dbed
better interface
2022-10-25 22:14:06 +00:00
Robert Schulze
728342ec7c
Un-inline stuff
2022-10-25 21:41:08 +00:00
Alexey Milovidov
2b4be633ff
Merge branch 'master' into revert-41726-fix-slow-json-extract-with-low-cardinality
2022-10-25 22:57:12 +02:00
ltrk2
2c902bbc65
Implement support for different UUID binary formats ( #42108 )
...
* Implement support for different UUID binary formats
* Declare error codes that the implementation uses
* Make single-argument constructor explicit
* Modernize parts of the solution
* Make improvements based on review comments
* Declare an error code being used
2022-10-25 21:57:50 +02:00
Nikolai Kochetov
bfb5e6eae4
Fix logical error for invalid prewhere type in StorageMerge.
2022-10-25 13:58:29 +00:00
Nikolai Kochetov
c4685f6994
Merge branch 'master' into fix-42575
2022-10-25 15:31:32 +02:00
Anton Popov
e2ff7aa261
Merge pull request #42623 from CurtizJ/fix-bad-cast
...
Fix bad cast in `arrayElement` with `Map` with `Nullable` values and `Nullable` index
2022-10-25 14:59:52 +02:00
Anton Popov
c8199bc125
Merge branch 'master' into refactor-data-part
2022-10-25 14:31:05 +02:00
Nikolai Kochetov
5c4444237e
Merge pull request #42617 from ClickHouse/revert-revert-41268-disable-s3-parallel-write-for-part-moves-to-disk-s3
...
Revert revert 41268 disable s3 parallel write for part moves to disk s3
2022-10-25 14:29:27 +02:00
Vladimir C
8fabe1515c
Merge pull request #42274 from dentiscalprum/fix_domain
2022-10-25 13:56:58 +02:00
Nikita Taranov
49f6692a2e
Adapt internal data structures to 512-bit era ( #42564 )
...
* impl
* update tests
* fix tests
2022-10-25 13:56:28 +02:00
Raúl Marín
0016bc2b73
Improve the time to recover keeper connections ( #42541 )
...
Co-authored-by: Nikita Mikhaylov <nikitamikhaylov@clickhouse.com>
Co-authored-by: robot-clickhouse <robot-clickhouse@clickhouse.com>
Co-authored-by: Alexey Milovidov <milovidov@clickhouse.com>
2022-10-25 13:26:29 +02:00
Antonio Andelic
af0c54e055
Small fix
2022-10-25 11:13:41 +00:00
Maksim Kita
a28d1f01fd
Analyzer IQueryTreeNode remove getName method
2022-10-25 12:54:17 +02:00
Alexander Gololobov
759d8bcd80
Merge pull request #42609 from filimonov/patch-6
...
Fix incorrect trace log line on dict reload
2022-10-25 12:51:00 +02:00
Antonio Andelic
451a50d9e9
Merge branch 'master' into correctly-handle-prewhere-type
2022-10-25 10:48:35 +00:00
Maksim Kita
e6bfff3de2
Analyzer change setting into allow_experimental_analyzer
2022-10-25 12:35:25 +02:00
Maksim Kita
06fe6f3c8b
Merge pull request #31796 from kitaisreal/identifier-resolver
...
Added Analyzer
2022-10-25 12:36:08 +03:00
Nikolay Degterinsky
62a33b12d5
Small refactor
2022-10-25 11:24:42 +02:00
Nikolay Degterinsky
b63ac4826b
Merge branch 'master' into fix-aliases
2022-10-25 10:34:52 +02:00
Alexey Milovidov
90c62fe46e
Merge branch 'master' into revert-41726-fix-slow-json-extract-with-low-cardinality
2022-10-25 09:31:46 +02:00
Robert Schulze
efd47c9eff
Merge pull request #42476 from ClickHouse/add-datetime-typedefs
...
Add convenience typedefs for Date/Date32/DateTime/DateTime64 columns
2022-10-25 08:45:57 +02:00
Alexey Milovidov
4ac34117ac
Merge pull request #42635 from CurtizJ/fix-build
...
Fix build
2022-10-25 08:40:57 +02:00
Alexey Milovidov
c48127534b
Merge pull request #41753 from pkit/morton_coding
...
add Morton Coding (ZCurve)
2022-10-25 06:10:37 +02:00
Alexey Milovidov
079ffa9827
Merge pull request #42353 from azat/build/musl-static
...
Make getResource() independent from the order of the sections
2022-10-25 05:57:22 +02:00
Anton Popov
e30d425869
fix build
2022-10-25 01:55:02 +00:00
Nikolay Degterinsky
8a9cfa9b17
Merge branch 'master' into fix-aliases
2022-10-25 02:28:40 +02:00
Anton Popov
cbfa887e52
fix merge of projections
2022-10-24 23:51:57 +00:00
Anton Popov
eed21ad4ca
Revert "Low cardinality cases moved to the function for its corresponding type"
2022-10-25 01:30:32 +02:00
Anton Popov
f865b28da4
fix drop of MergeTree tables
2022-10-24 22:38:53 +00:00
Guo Wangyang
4e294b9bfc
ColumnVector: re-enable AVX512_VBMI/AVX512_VBMI2 optimized filter and index ( #41765 )
...
* Revert "Merge pull request #41752 from ClickHouse/revert-revert-revert"
This reverts commit 7bb245720a
, reversing
changes made to 78002dc248
.
* Revert "Merge pull request #41797 from ClickHouse/revert-41247"
This reverts commit 69b13d9f31
, reversing
changes made to 1719e000ea
.
* AVX512VBMI::vectorIndexImpl: Fix heap buffer overflow when limit == 0
* use SIMD_ELEMENTS instead of SIMD_BYTES to avoid confusing
2022-10-24 23:11:46 +02:00
Nikolay Degterinsky
171ed8dd4e
Apply suggestions from review
2022-10-24 20:38:04 +00:00
Alexey Milovidov
9ee7131f67
Merge pull request #42423 from ClickHouse/optimize-partitions-in-background
...
Optimize partitions in background
2022-10-24 19:41:50 +02:00
Anton Popov
b58ca49f05
fix bad cast in arrayElement with Map and Nullable index
2022-10-24 17:34:46 +00:00
Robert Schulze
655233e1c5
Add convenience typedefs for Date/Date32/DateTime/DateTime64 columns
2022-10-24 16:55:41 +00:00
SmitaRKulkarni
96c8260230
Merge branch 'master' into 36316_Support_glob_for_recursive_directory_traversal
2022-10-24 18:34:19 +02:00
Anton Popov
dcb7667808
share transaction for projections
2022-10-24 16:28:19 +00:00
Sergei Trifonov
bef3c71453
Merge pull request #41726 from AlfVII/fix-slow-json-extract-with-low-cardinality
...
Low cardinality cases moved to the function for its corresponding type
2022-10-24 18:18:40 +02:00
Nikolai Kochetov
93310fe8b1
Fix typo.
2022-10-24 15:51:21 +00:00
Nikolai Kochetov
d5bd905a41
Try to fix data race on zookeeper vs DDLWorker at server shutdown.
2022-10-24 15:09:35 +00:00
Anton Popov
128fdd785e
better interface
2022-10-24 14:44:22 +00:00
Maksim Kita
d0e64eb15b
Fixed tests
2022-10-24 16:14:05 +02:00
Nikolai Kochetov
14e3bb6354
Another case.
2022-10-24 13:58:26 +00:00
Nikolai Kochetov
5dabbf89ad
Fixing build.
2022-10-24 13:43:24 +02:00
Vitaly Baranov
cd158b021f
Merge pull request #42562 from vitlibar/subqueries-in-row-policy-filters
...
Fix using subqueries in row policy filters
2022-10-24 13:38:15 +02:00
Han Fei
8f00d0d1cc
fix tidy
2022-10-24 12:56:36 +02:00
Nikolai Kochetov
aee7bb0d91
Merge pull request #42577 from ClickHouse/clean-thread-id
...
Clear thread::id when ThreadFromGlobalPool exits.
2022-10-24 12:03:28 +02:00
filimonov
0762783fbd
Fix incorrect trace log line on dict reload
2022-10-24 11:58:37 +02:00
Robert Schulze
240637f8f1
Merge branch 'master' into update-libcxx-to-15
2022-10-24 11:11:01 +02:00
Antonio Andelic
5579d139eb
Avoid crash with big int in prewhere
2022-10-24 08:37:52 +00:00
Maksim Kita
9a02d25c0b
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
3862dd96fe
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
8ac7f4423b
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
d083200d65
Fixed code review issues
2022-10-24 10:22:38 +02:00
Maksim Kita
561d585100
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
39b2d25a43
Added tests
2022-10-24 10:22:38 +02:00
Maksim Kita
90048ce75d
Fixed code review issues
2022-10-24 10:22:38 +02:00
Maksim Kita
dbc0870eb5
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
82fae0125c
Added FullSortingMerge JOIN support
2022-10-24 10:22:38 +02:00
Maksim Kita
1410befbe1
Added AggregateFunctionsArithmeticOperationsPass
2022-10-24 10:22:38 +02:00
Maksim Kita
144b33c75d
Fixed tests
2022-10-24 10:22:38 +02:00
Maksim Kita
852dd8c2bb
Updated UnionNode documentation
2022-10-24 10:22:37 +02:00
Maksim Kita
8610feb06d
Added UniqInjectiveFunctionsEliminationPass
2022-10-24 10:22:37 +02:00
Maksim Kita
c82bb1128f
Fixed nested IN functions
2022-10-24 10:22:37 +02:00
Maksim Kita
fe3eda4c2b
Added SumIfToCountIfPass
2022-10-24 10:22:37 +02:00
Maksim Kita
43ec5c830c
Added FunctionToSubcolumnsPass
2022-10-24 10:22:37 +02:00
Maksim Kita
98eba24a34
Fix LIMIT when query has WITH TOTALS
2022-10-24 10:22:37 +02:00
Maksim Kita
f4e59b217f
Added RBAC support
2022-10-24 10:22:37 +02:00
Maksim Kita
b50e2ce470
Added SETTINGS support
2022-10-24 10:22:37 +02:00
Maksim Kita
5a0298ea34
Fixed tests
2022-10-24 10:22:37 +02:00
Maksim Kita
da85af7e44
Added OrderByLimitByDuplicateEliminationPass
2022-10-24 10:22:37 +02:00
Maksim Kita
7851dfc324
Fixed tests
2022-10-24 10:22:37 +02:00
Maksim Kita
eba9607696
Analyzer move passes into separate folder
2022-10-24 10:22:37 +02:00
Maksim Kita
3a22e37691
Fix normalization of UNION inside DESCRIBE query
2022-10-24 10:22:37 +02:00
Maksim Kita
77ea9a11cd
Fixed code review issues
2022-10-24 10:22:21 +02:00
Maksim Kita
6ec5474466
Updated IQueryTreeNode interface with weak pointers array
2022-10-24 10:22:21 +02:00
Maksim Kita
2f282eeec9
Updated InDepthQueryTreeVisitor implementation
2022-10-24 10:22:21 +02:00
Maksim Kita
49a129008b
Fixed code review issues
2022-10-24 10:22:21 +02:00
Maksim Kita
239f1855aa
Updated projection names implementation
2022-10-24 10:22:21 +02:00
Maksim Kita
048e776c48
Fixed tests
2022-10-24 10:22:21 +02:00
Maksim Kita
400de59a37
Fixed style check
2022-10-24 10:22:21 +02:00
Maksim Kita
86896b76c5
Fix GROUP BY validation for subqueries
2022-10-24 10:22:21 +02:00
Maksim Kita
0892f485bb
Fix lambda tests
2022-10-24 10:22:21 +02:00
Maksim Kita
f2d801be2c
Added CustomizeFunctionsPass
2022-10-24 10:22:21 +02:00
Maksim Kita
b1471bdedf
Added CountDistinctPass
2022-10-24 10:22:21 +02:00
Maksim Kita
2aff015d29
Added NormalizeCountVariantsPass
2022-10-24 10:22:21 +02:00
Maksim Kita
54e2b6d28a
Added EXISTS support
2022-10-24 10:22:21 +02:00
Maksim Kita
f5ee7e0bee
Added IfChainToMultiIfPass
2022-10-24 10:22:21 +02:00
Maksim Kita
7c96c0afbd
Added OrderByTupleEliminationPass
2022-10-24 10:22:21 +02:00
Maksim Kita
11324aa4b4
Added IfConstantConditionPass
2022-10-24 10:22:21 +02:00
Maksim Kita
3d5b209861
Added support for dictGet, joinGet functions to handle identifier as first argument
2022-10-24 10:22:21 +02:00
Maksim Kita
7f26bcc275
Added unqualified matcher support for JOIN with USING
2022-10-24 10:22:21 +02:00
Maksim Kita
b7d0fd6bae
Added validation for subqueries and table functions in JOINs
2022-10-24 10:22:21 +02:00
Maksim Kita
d62bd792ac
Added positional arguments support
2022-10-24 10:22:21 +02:00
Maksim Kita
10438aea01
Added JOIN support for different algorithm
2022-10-24 10:22:21 +02:00
Maksim Kita
a0d9251f3a
Added ASOF join support
2022-10-24 10:22:21 +02:00
Maksim Kita
3782aed7a9
Separate planner expression analysis
2022-10-24 10:22:20 +02:00
Maksim Kita
8a39c3e1d5
Separate planner JOIN TREE processing
2022-10-24 10:22:20 +02:00
Maksim Kita
c7d51ca83d
Rename InterpolateColumnNode into InterpolateNode
2022-10-24 10:22:20 +02:00
Maksim Kita
2b2a70082e
Rename SortColumnNode into SortNode
2022-10-24 10:22:20 +02:00
Maksim Kita
fe84e871f8
Fixed build
2022-10-24 10:22:20 +02:00
Maksim Kita
8cadb1b318
Added WINDOW functions support
2022-10-24 10:22:20 +02:00
Maksim Kita
85ac02c9db
Planner improve action names
2022-10-24 10:22:20 +02:00
Maksim Kita
890d9678b9
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
a06832508e
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
4f68305dbe
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
ca93ee7479
Fixed tests
2022-10-24 10:22:20 +02:00
Maksim Kita
fc860ec050
Planner collect table expression data
2022-10-24 10:22:20 +02:00
Maksim Kita
1844673aa8
Updated tests
2022-10-24 10:22:20 +02:00
Maksim Kita
fed146e198
Added SAMPLE BY support. Added SAMPLE BY, FINAL support for JOINS.
2022-10-24 10:22:20 +02:00
Maksim Kita
5128262129
Added GROUP BY with constant keys support
2022-10-24 10:22:20 +02:00
Maksim Kita
64c60718f8
Updated SORT COLUMN with fill
2022-10-24 10:22:20 +02:00
Maksim Kita
4110460bcd
Added LIMIT BY support
2022-10-24 10:22:20 +02:00
Maksim Kita
81e4c67f17
Added INTERPOLATE support
2022-10-24 10:22:20 +02:00
Maksim Kita
504cb2b38f
Added GROUPING function support
2022-10-24 10:22:20 +02:00
Maksim Kita
a5ce4d7823
Added GROUPING SETS support
2022-10-24 10:22:20 +02:00
Maksim Kita
63e48bd869
Added GROUP BY CUBE, ROLLUP, TOTALS support
2022-10-24 10:22:20 +02:00
Maksim Kita
216250824b
Added extremes support
2022-10-24 10:22:20 +02:00
Maksim Kita
80b77f4ccc
Added HAVING support
2022-10-24 10:22:20 +02:00
Maksim Kita
c087eff470
Perform GROUP BY and aggregates validation during analysis stage
2022-10-24 10:22:20 +02:00
Maksim Kita
ea44b4be5e
Added subquery_depth support
2022-10-24 10:22:20 +02:00
Maksim Kita
2b571004f3
Added support for projection names
2022-10-24 10:22:19 +02:00
Maksim Kita
efc2433347
Added IN function Set table support
2022-10-24 10:22:19 +02:00
Maksim Kita
de1f470cfe
Planner simplified creation of sets for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
1cbf96d165
Added LIMIT, OFFSET support
2022-10-24 10:22:19 +02:00
Maksim Kita
ce9ea7ca0b
Fixed tests
2022-10-24 10:22:19 +02:00
Maksim Kita
6aa166f366
Added ORDER BY support
2022-10-24 10:22:19 +02:00
Maksim Kita
03864790ad
Added DISTINCT support
2022-10-24 10:22:19 +02:00
Maksim Kita
5c6d175028
Added GROUP BY support
2022-10-24 10:22:19 +02:00
Maksim Kita
2995fb7944
Added support for building sets for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
44ada63a97
Added Planner
2022-10-24 10:22:19 +02:00
Maksim Kita
85193ede42
Added UNION support
2022-10-24 10:22:19 +02:00
Maksim Kita
0da0019634
Added ARRAY JOIN support
2022-10-24 10:22:19 +02:00
Maksim Kita
89e5b09e7f
Updated JOIN tests
2022-10-24 10:22:19 +02:00
Maksim Kita
b32092f24a
JOIN support join_use_nulls, USING
2022-10-24 10:22:19 +02:00
Maksim Kita
40cb904a3d
Added support for JOIN, ARRAY JOIN
2022-10-24 10:22:19 +02:00
Maksim Kita
1717d16fa4
Improved lambda matcher support
2022-10-24 10:22:19 +02:00
Maksim Kita
062e17052f
Added support for IN function
2022-10-24 10:22:19 +02:00
Maksim Kita
2148d0e58d
Added support for arrayJoin function
2022-10-24 10:22:19 +02:00
Maksim Kita
a9e1f74696
Added support for grouping function
2022-10-24 10:22:19 +02:00
Maksim Kita
635bd44413
Added support for table functions
2022-10-24 10:22:18 +02:00
Maksim Kita
569fb36097
Added support for table ALIAS columns
2022-10-24 10:22:18 +02:00
Maksim Kita
603c4febc3
Update explain query tree representation
2022-10-24 10:22:18 +02:00
Maksim Kita
dd28b58864
Added support for subqueries
2022-10-24 10:22:18 +02:00
Maksim Kita
6a5276e45e
Updated tests
2022-10-24 10:22:18 +02:00
Maksim Kita
2d61c45f94
Added support for multiple expressions with same alias
2022-10-24 10:22:18 +02:00
Maksim Kita
d835f70fdc
Added support for STRICT column transformers
2022-10-24 10:22:18 +02:00