ClickHouse/tests
Azat Khuzhin 10b4f3b41f Optimize queries with LIMIT/LIMIT BY/ORDER BY for distributed with GROUP BY sharding_key
Previous set of QueryProcessingStage does not allow to do this.
But after WithMergeableStateAfterAggregation had been introduced the
following queries can be optimized too under
optimize_distributed_group_by_sharding_key:
- GROUP BY sharding_key LIMIT
- GROUP BY sharding_key LIMIT BY
- GROUP BY sharding_key ORDER BY

And right now it is still not supports:
- WITH TOTALS (looks like it can be supported)
- WITH ROLLUP (looks like it can be supported)
- WITH CUBE
- SETTINGS extremes=1 (looks like it can be supported)
But will be implemented separatelly.

vX: fixes
v2: fix WITH *
v3: fix extremes
v4: fix LIMIT OFFSET (and make a little bit cleaner)
v5: fix HAVING
v6: fix ORDER BY
v7: rebase against 20.7
v8: move out WithMergeableStateAfterAggregation
v9: add optimize_distributed_group_by_sharding_key into test names
2020-09-03 00:52:51 +03:00
..
config use Atomic for system database 2020-08-12 23:40:13 +03:00
external_models/catboost
fuzz
instructions
integration Merge pull request #13987 from vitlibar/fix-grant-all-on-table 2020-09-02 05:06:32 +03:00
perf_drafts
performance Merge pull request #14110 from 4ertus2/decimal 2020-08-31 17:08:49 +03:00
queries Optimize queries with LIMIT/LIMIT BY/ORDER BY for distributed with GROUP BY sharding_key 2020-09-03 00:52:51 +03:00
testflows Merge pull request #13987 from vitlibar/fix-grant-all-on-table 2020-09-02 05:06:32 +03:00
users.d
.gitignore
clickhouse-client.xml
clickhouse-test Update clickhouse-test 2020-08-27 15:20:59 +03:00
clickhouse-test-server
client-test.xml
CMakeLists.txt
CTestCustom.cmake
decimals_dictionary.xml
ints_dictionary.xml
msan_suppressions.txt
server-test.xml
stress
strings_dictionary.xml
tsan_suppressions.txt
users.xml