diff --git a/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference b/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference new file mode 100644 index 00000000000..16357b19ff1 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.reference @@ -0,0 +1,2 @@ +2018-01-21 15:12:13 +2018-01-21 15:12:13 diff --git a/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql b/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql new file mode 100644 index 00000000000..27eb3ce3d4e --- /dev/null +++ b/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql @@ -0,0 +1,6 @@ +create database if not exists test; +drop table if exists test.tab; +create table test.tab (date Date, time DateTime, data String) ENGINE = MergeTree(date, (time, data), 8192); +insert into test.tab values ('2018-01-21','2018-01-21 15:12:13','test'); +select time FROM remote('127.0.0.{1,2}', test.tab) WHERE date = '2018-01-21' limit 2; +