Jakub Kuklis
36229f631e
Remove done TODO
2022-04-29 10:01:50 +02:00
Jakub Kuklis
53e2454800
Corrected the behaviour for Proto Nullable output
2022-04-29 10:01:50 +02:00
Jakub Kuklis
014b71e4b2
Test for input and output of Nullable Google wrappers, still one thing to investigate about output
2022-04-29 10:01:50 +02:00
Jakub Kuklis
10425c17b2
Write empty values for Google wrappers
2022-04-29 10:01:50 +02:00
Jakub Kuklis
ff49fad1f1
Another const keyword corrections for debug build
2022-04-29 10:01:50 +02:00
Jakub Kuklis
08ee7470f0
const keyword corrections for debug build
2022-04-29 10:01:50 +02:00
Jakub Kuklis
c0acc4dfa0
Fixing assert
2022-04-29 10:01:50 +02:00
Jakub Kuklis
7a78197746
Style corrections
2022-04-29 10:01:50 +02:00
Jakub Kuklis
ae1194bf9c
Nullables detection in protobuf using Google wrappers
2022-04-29 10:01:50 +02:00
Amos Bird
20f63a6fa4
Fix style check
2022-04-29 15:32:53 +08:00
Alexey Milovidov
9fb1d92ff5
Merge pull request #36707 from CurtizJ/fix-vertical-merges
...
Fix vertical merges in wide parts
2022-04-29 10:09:50 +03:00
Amos Bird
9d30be2c59
Fix build again
2022-04-29 14:45:27 +08:00
Alexey Milovidov
73b451160d
Merge pull request #36769 from ClickHouse/fix-performance-test
...
Fix performance test
2022-04-29 08:19:27 +03:00
Azat Khuzhin
bf312c2a5b
Fix ALTER DROP COLUMN of nested column with compact parts
...
ALTER DROP COLUMN of nested column did not requires mutation before, and
so it leaves nested column as-is, and in case of compact parts
subsequent alter, that requires mutation, will trigger READ_COLUMN of
that nested column (because it exists in part), but it will fail because
there is no such column in the table already.
Here is example of such a failure on CI - [1].
[1]: https://s3.amazonaws.com/clickhouse-test-reports/35459/52099b23a1cb9a7ff036c5c60aa037c999b333ef/stateless_tests__thread__actions__[1/3].html
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 07:12:34 +03:00
Azat Khuzhin
73ddc25e1e
Require mutations for DROP COLUMN by root column name for nested columns
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 07:09:34 +03:00
Azat Khuzhin
0ce44f3021
Optimize optimize_aggregation_in_order with a prefix key
...
Before it does lots of extra work, now, it will be significantly more
optimal (thousands of rows -> 1-2 million of rows).
v2: s/executeOnBlockSimple/executeOnBlockSmall/
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:58:28 +03:00
Azat Khuzhin
190ce217bb
Disable GROUP BY statistics for optimize_aggregation_in_order
...
This statistics significantly decrease performance of
optimize_aggregation_in_order with a prefix key.
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:58:27 +03:00
Azat Khuzhin
3931dbd848
Implement partial GROUP BY key for optimize_aggregation_in_order
...
Suppose you have a table with lots of rows, like:
create table data_02233 (parent_key Int, child_key Int, value Int) engine=MergeTree() order by parent_key
And you want to do GROUP BY (parent_key, child_key) with optimize_aggregation_in_order:
select parent_key, child_key, count() from data_02233 group by parent_key, child_key with totals order by parent_key, child_key
Right now, it is not possible, because optimize_aggregation_in_order
supports only w/o key aggregation, i.e. GROUP BY cannot be done inside
unique parent_key region.
v2: rebase on top SortDescriptionWithPositions
v3: disable two-level aggregation
v4: fix merging of aggregates
v5: improve tests coverage (add a test with multiple parts, to add merge processor)
v6: add a test for compiled aggregate functions (sum()) explicitly
v7: add missing sortBlock()
v8: remove group_by_description_optimized
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:58:07 +03:00
Azat Khuzhin
767acd53fb
Add ability to pass range of rows to Aggregator
...
v2: fix compiled aggregate functions (seek result to row_start)
v3: fix compiled aggregate functions (seek args to row_start)
v4: change signatures for JIT
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:57:55 +03:00
Azat Khuzhin
599a255741
AggregatingInOrderTransform: correctly invalidate variants
...
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
2022-04-29 06:56:32 +03:00
zhangyifan27
318212a929
reformat py
2022-04-29 11:00:54 +08:00
Alexey Milovidov
ca7e4c6eb2
Merge pull request #36740 from Ryado/patch-1
...
Adding a note about server_id reuse
2022-04-29 05:44:11 +03:00
Alexey Milovidov
b1fa88c821
Merge pull request #36767 from azat/clickhouse-test-compat
...
Fix clickhouse-test for server without `is_all_data_sent` in system.processes
2022-04-29 05:42:05 +03:00
Alexey Milovidov
1dc56e39fc
black .
2022-04-29 04:39:21 +02:00
Alexey Milovidov
2a3a2184ec
Refinement
2022-04-29 04:37:57 +02:00
Alexey Milovidov
df45c9503d
Trim down some tests
2022-04-29 04:33:12 +02:00
Alexey Milovidov
31215f874c
Fix slow performance test
2022-04-29 04:29:06 +02:00
Alexey Milovidov
2d7d67e7bc
Remove special handling of "short" queries - the logic is too ad-hoc, it pollutes the code and is difficult to handle
2022-04-29 04:27:57 +02:00
Amos Bird
50a00b64fd
Fix build
2022-04-29 10:26:38 +08:00
Amos Bird
4a5e4274f0
base should not depend on Common
2022-04-29 10:26:35 +08:00
Amos Bird
e81929a8b5
Saturate date/datetime to zero (part 2)
...
For partial hours/minutes timezones.
2022-04-29 10:24:18 +08:00
Alexey Milovidov
bf100e0a4c
Remove "partial merge join" performance test, because we are not interested in the results
2022-04-29 04:13:30 +02:00
Kseniia Sumarokova
4102502717
Merge pull request #36619 from ClickHouse/parallel-url-performance-issue
...
ParallelReadBuffer small improvements
2022-04-29 02:55:30 +02:00
Kseniia Sumarokova
ace3fe253d
Merge pull request #36737 from KinderRiven/fix_bug_for_local_cache
...
fix bug for local cache
2022-04-29 02:54:33 +02:00
mergify[bot]
41aa85fd4c
Merge branch 'master' into fix-stress-test
2022-04-29 00:54:09 +00:00
zhangyifan27
2257e57aa5
fix groupBitmapAndState on distributed table
2022-04-29 08:09:00 +08:00
kssenii
c31aae0ef4
Update test
2022-04-29 01:17:11 +02:00
Kseniia Sumarokova
2f64255415
Merge pull request #36743 from ClickHouse/kssenii-patch-3
...
Update 00170_s3_cache.sql
2022-04-29 00:03:39 +02:00
Alexey Milovidov
f200af5530
Merge pull request #36733 from ClickHouse/maven-clickhouse
...
Change Maven URL example for JDBC bridge in ClickHouse config
2022-04-29 00:12:53 +03:00
kssenii
1cbf672237
Another fix
2022-04-28 22:51:57 +02:00
Azat Khuzhin
287c098c7e
Fix clickhouse-test for server w/o is_all_data_sent in system.processes
2022-04-28 23:19:21 +03:00
Maksim Kita
a9a04ca2fd
Fix style
2022-04-28 22:13:51 +02:00
Maksim Kita
04429d85db
Added user_defined_path config setting
2022-04-28 22:13:33 +02:00
Maksim Kita
c8178f88df
Merge pull request #36757 from kitaisreal/executable-user-defined-functions-fix-documentation
...
Fix documentation for executable user defined functions configuration
2022-04-28 22:10:58 +02:00
Maksim Kita
55994afe0c
Fix evaluateConstantExpression for subqueries
2022-04-28 22:09:29 +02:00
Alexander Tokmakov
6797e7dc76
fix flaky test
2022-04-28 21:39:45 +02:00
mergify[bot]
903dffdeb2
Merge branch 'master' into executable-user-defined-functions-fix-documentation
2022-04-28 18:05:13 +00:00
mergify[bot]
99279b2d7b
Merge branch 'master' into clickhouse-dictionary-context-copy
2022-04-28 18:05:08 +00:00
mergify[bot]
20e2fa9b3f
Merge branch 'master' into dynamic-columns-9
2022-04-28 17:53:03 +00:00
Anton Popov
5ff11a431d
Update 01825_type_json_bools.sql
2022-04-28 19:28:00 +02:00