Maksim Kita
55220d49f9
Fixed code review issues
2021-07-03 16:29:32 +03:00
Maksim Kita
97e1ddbe94
Fix before merge
2021-07-01 22:56:36 +03:00
Maksim Kita
4bd398c0e5
Fixed tests
2021-07-01 22:56:36 +03:00
Maksim Kita
f33a38381d
Fixed tests
2021-07-01 22:56:36 +03:00
Maksim Kita
325b54f623
Aggregator compile only part of aggregate functions
2021-07-01 22:56:36 +03:00
Maksim Kita
fdf172a61e
Fixed tests
2021-07-01 22:56:36 +03:00
Maksim Kita
30021f0335
Fixed tests
2021-07-01 22:56:36 +03:00
Maksim Kita
da8c957167
Aggregator added CompiledExpressionCache
2021-07-01 22:56:36 +03:00
Maksim Kita
7b3952adda
Fixed tests
2021-07-01 22:56:36 +03:00
Maksim Kita
0fb8ea530f
Avoid using exception unsafe method
2021-07-01 22:56:36 +03:00
Maksim Kita
d24d3ae992
Added second variant of compilation
2021-07-01 22:56:36 +03:00
Maksim Kita
1e2f22a183
Aggregator compile part of aggregate functions
2021-07-01 22:56:36 +03:00
Maksim Kita
d4742f91e6
Check min_count_to_compile_aggregate_expression setting before compilation
2021-07-01 22:56:36 +03:00
Maksim Kita
507d9405e2
Compile AggregateFunctionAvgWeighted
2021-07-01 22:56:36 +03:00
Maksim Kita
a5ef0067b8
Compile AggregateFunctionIf
2021-07-01 22:56:35 +03:00
Maksim Kita
9b71b1040a
Aggregate functions update compile interface
2021-07-01 22:56:35 +03:00
Maksim Kita
3fe559b31f
Compile aggregate functions
2021-07-01 22:56:35 +03:00
alexey-milovidov
7616216f10
Merge pull request #25015 from ClickHouse/fix-wrong-code-in-aggregate-functions
...
Remove a chunk of wrong code and look what will happen
2021-06-11 00:36:35 +03:00
Alexey Milovidov
39abf41b4d
Fix clang-tidy
2021-06-10 02:16:01 +03:00
Amos Bird
840895509e
Fix using aggregate projection when group by without key
2021-06-07 22:44:42 +08:00
Amos Bird
a113acc40c
Fix empty key
2021-05-14 22:54:14 +08:00
Amos Bird
ebaf42a448
Reformat and fix some tests
2021-05-11 18:12:27 +08:00
Nikolai Kochetov
3296c9292f
Try to merge projectons faster.
2021-05-11 18:12:26 +08:00
Alexey Milovidov
b2ca5cd98b
Merge branch 'master' into normalize-bigint
2021-05-11 02:05:40 +03:00
alexey-milovidov
ab33b80edc
Merge pull request #23962 from azat/external-group-by-overflow-row-fix
...
Fix SIGSEGV for external GROUP BY and overflow row
2021-05-10 20:02:05 +03:00
Alexey Milovidov
9753ddc8a0
Merge branch 'master' of github.com:yandex/ClickHouse into normalize-bigint
2021-05-09 18:54:29 +03:00
Azat Khuzhin
6b11319cdf
Round floats in Aggregator log messages
2021-05-08 18:01:24 +03:00
Azat Khuzhin
4cecc238d6
Fix SIGSEGV for external GROUP BY and overflow row
...
Overflow row is used for GROUP BY if all of the above is true:
- WITH TOTALS is requested
- max_rows_to_group_by > 0
- group_by_overflow_mode = any
- totals_mode != after_having_exclusive
And in case of overflow row and external GROUP BY, once the temporary
file dumps to disk it resets without_key data variant to nullptr, so any
subsequent dump to disk will cause SIGSEGV.
Fix this, by recreating without_key data variant after dumping to disk,
instead of reseting to nullptr.
And also add sanity check (LOGICAL_ERROR) to make error more
deterministic in case of such error.
Found with fuzzer [1].
[1]: https://clickhouse-test-reports.s3.yandex.net/23929/e7027e052998540ee660d186727e20f9555b729d/fuzzer_ubsan/report.html#fail1
2021-05-08 17:48:24 +03:00
Alexey Milovidov
1fda866881
Merge branch 'master' into normalize-bigint
2021-05-02 21:24:45 +03:00
Nikolai Kochetov
c508868570
Merge pull request #23082 from ClickHouse/explain-output
...
JSON output for EXPLAIN
2021-04-28 15:39:06 +03:00
Nikolai Kochetov
5570b56cc3
A little bit faster merge of aggregating states.
2021-04-27 12:01:58 +03:00
Maksim Kita
5bb263f535
Fixed tests
2021-04-26 13:44:59 +03:00
Maksim Kita
cac4a85286
Aggregator remove unused code
2021-04-26 01:17:24 +03:00
Alexey Milovidov
8f01af62d9
Merge branch 'master' into normalize-bigint
2021-04-25 06:57:44 +03:00
Nikolai Kochetov
6b264933b2
Fix style.
2021-04-20 17:51:48 +03:00
Nikolai Kochetov
8c2d58333a
Merge branch 'master' into explain-output
2021-04-19 17:40:27 +03:00
Azat Khuzhin
d2cf03ea41
Change logging from trace to debug for messages with rows/bytes
2021-04-15 21:00:16 +03:00
Nikolai Kochetov
9b86c19836
Use JSONBuilder for explain json result.
2021-04-14 17:07:56 +03:00
Anton Popov
a000d6154c
fix clang-tidy
2021-04-02 15:10:49 +03:00
Anton Popov
56320bcbfd
minor refactoring
2021-04-02 01:16:54 +03:00
Anton Popov
88cd775f6a
Merge remote-tracking branch 'upstream/master' into HEAD
2021-04-02 00:14:03 +03:00
Anton Popov
5de2b8512f
fix destruction of aggregate states
2021-03-23 01:12:14 +03:00
Nikolai Kochetov
bc63d4244b
Merge pull request #21856 from ClickHouse/aggregator-no-more-keys-batch
...
Batch aggregation for overflow rows.
2021-03-19 11:52:55 +03:00
Anton Popov
6f7c8894e9
fix bugs in aggregation by primary key
2021-03-18 23:57:42 +03:00
Nikolai Kochetov
07c5a7766c
Fxi test.
2021-03-18 16:23:09 +03:00
Nikolai Kochetov
66d5968cbc
Batch aggregation for overflow rows.
2021-03-18 12:31:14 +03:00
Amos Bird
0640bb4cba
Fix arena data race in two level merge
2021-03-17 14:33:57 +08:00
Nikolai Kochetov
4c8c45b163
Refactor
2021-03-10 14:00:24 +03:00
Nikolai Kochetov
ce365e2c19
Fix tests.
2021-02-26 11:52:50 +03:00
Alexey Milovidov
252bcccdda
Just little better
2021-02-19 21:32:39 +03:00