ClickHouse/tests/queries/0_stateless/00976_shard_low_cardinality_achimbab.sql
Ivan 97f2a2213e
Move all folders inside /dbms one level up (#9974)
* Move some code outside dbms/src folder
* Fix paths
2020-04-02 02:51:21 +03:00

7 lines
311 B
SQL

DROP TABLE IF EXISTS han_1;
CREATE TABLE han_1 (k Int32, date_dt LowCardinality(Nullable(String)))
ENGINE = MergeTree() PARTITION BY k ORDER BY k;
INSERT INTO han_1 values (1, '2019-07-31');
SELECT k, uniq(date_dt) FROM remote('127.0.0.{1,2}', currentDatabase(), han_1) GROUP BY k;
DROP TABLE IF EXISTS han_1;