ClickHouse/dbms
Azat Khuzhin 81aeff2d2a Add _shard_num virtual column for the Distributed engine
With JOIN from system.clusters one can figure out from which server data
came.

TODO:
- optimization to avoid communicating with unrelated shards (for queries
  like "AND _shard_num = n")
- fix aliases (see tests with serverError expected)

v0: AddingConstColumnBlockInputStream
v2: VirtualColumnUtils::rewriteEntityInAst
v3: fix remote(Distributed) by appending _shard_num only if has been requested
2019-11-06 15:26:12 +03:00
..
benchmark
cmake Auto version update to [19.17.1.1] [54428] 2019-10-21 15:48:00 +03:00
programs Better null format for tcp handler. 2019-11-04 11:53:26 +08:00
src Add _shard_num virtual column for the Distributed engine 2019-11-06 15:26:12 +03:00
tests Add _shard_num virtual column for the Distributed engine 2019-11-06 15:26:12 +03:00
CMakeLists.txt Fix build without submodules (#7295) 2019-10-30 23:34:06 +03:00