diff --git a/dbms/tests/queries/0_stateless/00061_merge_tree_alter.reference b/dbms/tests/queries/0_stateless/00061_merge_tree_alter.reference new file mode 100644 index 00000000000..d35dbf243f3 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00061_merge_tree_alter.reference @@ -0,0 +1,138 @@ +d Date +k UInt64 +i32 Int32 +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32) ENGINE = MergeTree(d, k, 8192) +2015-01-01 10 42 +d Date +k UInt64 +i32 Int32 +dt DateTime +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime) ENGINE = MergeTree(d, k, 8192) +2015-01-01 10 42 0000-00-00 00:00:00 +2015-01-01 9 41 1992-01-01 08:00:00 +d Date +k UInt64 +i32 Int32 +dt DateTime +n.ui8 Array(UInt8) +n.s Array(String) +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.ui8` Array(UInt8), `n.s` Array(String)) ENGINE = MergeTree(d, k, 8192) +2015-01-01 10 42 0000-00-00 00:00:00 [] [] +2015-01-01 9 41 1992-01-01 08:00:00 [] [] +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] +d Date +k UInt64 +i32 Int32 +dt DateTime +n.ui8 Array(UInt8) +n.s Array(String) +n.d Array(Date) +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.ui8` Array(UInt8), `n.s` Array(String), `n.d` Array(Date)) ENGINE = MergeTree(d, k, 8192) +2015-01-01 10 42 0000-00-00 00:00:00 [] [] [] +2015-01-01 9 41 1992-01-01 08:00:00 [] [] [] +2015-01-01 7 39 2014-07-14 13:26:50 [10,20,30] ['120','130','140'] ['2000-01-01','2000-01-01','2000-01-03'] +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] ['0000-00-00','0000-00-00','0000-00-00'] +d Date +k UInt64 +i32 Int32 +dt DateTime +n.ui8 Array(UInt8) +n.s Array(String) +n.d Array(Date) +s String +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.ui8` Array(UInt8), `n.s` Array(String), `n.d` Array(Date), s String) ENGINE = MergeTree(d, k, 8192) +2015-01-01 9 41 1992-01-01 08:00:00 [] [] [] +2015-01-01 7 39 2014-07-14 13:26:50 [10,20,30] ['120','130','140'] ['2000-01-01','2000-01-01','2000-01-03'] +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 10 42 0000-00-00 00:00:00 [] [] [] +2015-01-01 6 38 2014-07-15 13:26:50 [10,20,30] ['asd','qwe','qwe'] ['2000-01-01','2000-01-01','2000-01-03'] 100500 +d Date +k UInt64 +i32 Int32 +dt DateTime +n.ui8 Array(UInt8) +n.s Array(String) +s Int64 +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.ui8` Array(UInt8), `n.s` Array(String), s Int64) ENGINE = MergeTree(d, k, 8192) +2015-01-01 7 39 2014-07-14 13:26:50 [10,20,30] ['120','130','140'] 0 +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] 0 +2015-01-01 9 41 1992-01-01 08:00:00 [] [] 0 +2015-01-01 10 42 0000-00-00 00:00:00 [] [] 0 +2015-01-01 6 38 2014-07-15 13:26:50 [10,20,30] ['asd','qwe','qwe'] 100500 +d Date +k UInt64 +i32 Int32 +dt DateTime +n.ui8 Array(UInt8) +n.s Array(String) +s UInt32 +n.d Array(Date) +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.ui8` Array(UInt8), `n.s` Array(String), s UInt32, `n.d` Array(Date)) ENGINE = MergeTree(d, k, 8192) +2015-01-01 7 39 2014-07-14 13:26:50 [10,20,30] ['120','130','140'] 0 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] 0 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 9 41 1992-01-01 08:00:00 [] [] 0 [] +2015-01-01 10 42 0000-00-00 00:00:00 [] [] 0 [] +2015-01-01 6 38 2014-07-15 13:26:50 [10,20,30] ['asd','qwe','qwe'] 100500 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 6 38 2014-07-15 13:26:50 [10,20,30] ['asd','qwe','qwe'] 100500 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 7 39 2014-07-14 13:26:50 [10,20,30] ['120','130','140'] 0 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 8 40 2012-12-12 12:12:12 [1,2,3] ['12','13','14'] 0 ['0000-00-00','0000-00-00','0000-00-00'] +2015-01-01 9 41 1992-01-01 08:00:00 [] [] 0 [] +2015-01-01 10 42 0000-00-00 00:00:00 [] [] 0 [] +d Date +k UInt64 +i32 Int32 +dt DateTime +n.s Array(String) +s UInt32 +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, `n.s` Array(String), s UInt32) ENGINE = MergeTree(d, k, 8192) +2015-01-01 6 38 2014-07-15 13:26:50 ['asd','qwe','qwe'] 100500 +2015-01-01 7 39 2014-07-14 13:26:50 ['120','130','140'] 0 +2015-01-01 8 40 2012-12-12 12:12:12 ['12','13','14'] 0 +2015-01-01 9 41 1992-01-01 08:00:00 [] 0 +2015-01-01 10 42 0000-00-00 00:00:00 [] 0 +d Date +k UInt64 +i32 Int32 +dt DateTime +s UInt32 +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, s UInt32) ENGINE = MergeTree(d, k, 8192) +2015-01-01 6 38 2014-07-15 13:26:50 100500 +2015-01-01 7 39 2014-07-14 13:26:50 0 +2015-01-01 8 40 2012-12-12 12:12:12 0 +2015-01-01 9 41 1992-01-01 08:00:00 0 +2015-01-01 10 42 0000-00-00 00:00:00 0 +d Date +k UInt64 +i32 Int32 +dt DateTime +s UInt32 +n.s Array(String) +n.d Array(Date) +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, s UInt32, `n.s` Array(String), `n.d` Array(Date)) ENGINE = MergeTree(d, k, 8192) +2015-01-01 6 38 2014-07-15 13:26:50 100500 [] [] +2015-01-01 7 39 2014-07-14 13:26:50 0 [] [] +2015-01-01 8 40 2012-12-12 12:12:12 0 [] [] +2015-01-01 9 41 1992-01-01 08:00:00 0 [] [] +2015-01-01 10 42 0000-00-00 00:00:00 0 [] [] +d Date +k UInt64 +i32 Int32 +dt DateTime +s UInt32 +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, s UInt32) ENGINE = MergeTree(d, k, 8192) +2015-01-01 6 38 2014-07-15 13:26:50 100500 +2015-01-01 7 39 2014-07-14 13:26:50 0 +2015-01-01 8 40 2012-12-12 12:12:12 0 +2015-01-01 9 41 1992-01-01 08:00:00 0 +2015-01-01 10 42 0000-00-00 00:00:00 0 +d Date +k UInt64 +i32 Int32 +dt String +s String +CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt String, s String) ENGINE = MergeTree(d, k, 8192) +2015-01-01 6 38 2014-07-15 13:26:50 100500 +2015-01-01 7 39 2014-07-14 13:26:50 0 +2015-01-01 8 40 2012-12-12 12:12:12 0 +2015-01-01 9 41 1992-01-01 08:00:00 0 +2015-01-01 10 42 0000-00-00 00:00:00 0