mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
added test, fixed test. [#METR-11886]
This commit is contained in:
parent
5e10dbca8a
commit
df852d2b5c
@ -128,11 +128,11 @@ CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt DateTime, s UInt32
|
||||
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
|
||||
dt Date
|
||||
s DateTime
|
||||
CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt Date, s DateTime) ENGINE = MergeTree(d, k, 8192)
|
||||
2015-01-01 6 38 2014-07-15 1970-01-02 06:55:00
|
||||
2015-01-01 7 39 2014-07-14 0000-00-00 00:00:00
|
||||
2015-01-01 8 40 2012-12-12 0000-00-00 00:00:00
|
||||
2015-01-01 9 41 1992-01-01 0000-00-00 00:00:00
|
||||
2015-01-01 10 42 0000-00-00 0000-00-00 00:00:00
|
||||
|
@ -75,7 +75,7 @@ DESC TABLE test.alter;
|
||||
SHOW CREATE TABLE test.alter;
|
||||
SELECT * FROM test.alter ORDER BY k;
|
||||
|
||||
ALTER TABLE test.alter MODIFY COLUMN dt String, MODIFY COLUMN s String;
|
||||
ALTER TABLE test.alter MODIFY COLUMN dt Date, MODIFY COLUMN s DateTime;
|
||||
|
||||
DESC TABLE test.alter;
|
||||
SHOW CREATE TABLE test.alter;
|
||||
|
Loading…
Reference in New Issue
Block a user