ClickHouse/src
Azat Khuzhin 8703b7863d Fix distributed_group_by_no_merge=2 with GROUP BY
Before this patch the following query:

  SELECT assumeNotNull(argMax(dummy, 1))
  FROM remote('127.1', system.one)
  SETTINGS distributed_group_by_no_merge = 2

Leads to:

  Code: 10. DB::Exception: Received from localhost:9000. DB::Exception: Not found column argMax(dummy, 1) in block: while executing 'INPUT : 0 -> argMax(dummy, 1) UInt8 : 0'.

Since it tries to execute function one more time, but shards will not
send this column when the query processed with
distributed_group_by_no_merge=2 (i.e. up to
WithMergeableStateAfterAggregation).

v0: no exception
v2: execut window functions
v3: throw exception, since executing window function in this case will
lead to messy output
2021-05-06 00:21:47 +03:00
..
Access Merge pull request #23429 from Jokser/disk-s3-restart-possibility 2021-05-01 15:28:14 +03:00
AggregateFunctions Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Bridge XDBCBridgeHelper use global context 2021-05-01 15:00:37 +03:00
Client Merge pull request #23805 from ClickHouse/fix-hedged-requests-ext-tables 2021-05-01 08:13:13 +03:00
Columns Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Common Merge pull request #23885 from azat/dist-broken-metrics 2021-05-05 13:41:15 +03:00
Compression Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Coordination
Core PVS-Studio 2021-05-04 15:13:47 +03:00
Databases Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
DataStreams Merge pull request #23805 from ClickHouse/fix-hedged-requests-ext-tables 2021-05-01 08:13:13 +03:00
DataTypes Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Dictionaries Flat, Hashed dictionary include update field bytes into bytes_allocated 2021-05-01 01:23:22 +03:00
Disks Add DiskRestartProxy.cpp to ya.make 2021-05-03 20:50:17 +03:00
Formats Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Functions Shave off some lines of code 2021-05-05 15:01:01 +03:00
Interpreters Fix distributed_group_by_no_merge=2 with GROUP BY 2021-05-06 00:21:47 +03:00
IO Add Read/WriteBufferFromFileDecorator.cpp to ya.make 2021-05-04 16:07:56 +03:00
Parsers Merge pull request #23429 from Jokser/disk-s3-restart-possibility 2021-05-01 15:28:14 +03:00
Processors Merge pull request #23743 from ClickHouse/refactor-join-step 2021-05-02 21:17:23 +03:00
Server Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
Storages Merge pull request #23885 from azat/dist-broken-metrics 2021-05-05 13:41:15 +03:00
TableFunctions Add examples folder filter to ya.make.in 2021-04-30 11:25:52 +03:00
CMakeLists.txt
NOTICE
ya.make