ClickHouse/dbms/tests/queries/0_stateless/00614_shard_same_header_for_local_and_remote_node_in_distributed_query.sql

8 lines
358 B
MySQL
Raw Normal View History

2018-04-11 19:06:54 +00:00
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;
2018-06-29 11:42:44 +00:00
drop table test.tab;
2018-04-11 19:06:54 +00:00