Added a test just in case [#CLICKHOUSE-3995]

This commit is contained in:
Alexey Milovidov 2018-12-28 21:37:23 +03:00
parent 3c82dd8809
commit de10df4b12
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,2 @@
1
1

View File

@ -0,0 +1,19 @@
USE test;
DROP TABLE IF EXISTS fact_cpc_clicks;
DROP TABLE IF EXISTS dim_model;
CREATE TABLE fact_cpc_clicks (model_id UInt8) ENGINE = Memory;
CREATE TABLE dim_model (model_id UInt8) ENGINE = Memory;
INSERT INTO fact_cpc_clicks VALUES (1);
INSERT INTO dim_model VALUES (1);
select f.model_id from fact_cpc_clicks as f left join dim_model as d on f.model_id=d.model_id limit 10;
USE default;
select f.model_id from test.fact_cpc_clicks as f left join test.dim_model as d on f.model_id=d.model_id limit 10;
DROP TABLE test.fact_cpc_clicks;
DROP TABLE test.dim_model;