mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Add 02008_aliased_column_distributed_bug.sql
This commit is contained in:
parent
c4a14ffca2
commit
887d6b0867
@ -0,0 +1,11 @@
|
||||
DROP TABLE IF EXISTS click_storage;
|
||||
DROP TABLE IF EXISTS click_storage_dst;
|
||||
|
||||
CREATE TABLE click_storage ( `PhraseID` UInt64, `PhraseProcessedID` UInt64 ALIAS if(PhraseID > 0, PhraseID, 0) ) ENGINE = MergeTree() ORDER BY tuple();
|
||||
|
||||
CREATE TABLE click_storage_dst ( `PhraseID` UInt64, `PhraseProcessedID` UInt64 ) ENGINE = Distributed(test_shard_localhost, currentDatabase(), 'click_storage');
|
||||
|
||||
SELECT materialize(PhraseProcessedID) FROM click_storage_dst;
|
||||
|
||||
DROP TABLE IF EXISTS click_storage;
|
||||
DROP TABLE IF EXISTS click_storage_dst;
|
Loading…
Reference in New Issue
Block a user