mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +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
|
d Date
|
||||||
k UInt64
|
k UInt64
|
||||||
i32 Int32
|
i32 Int32
|
||||||
dt String
|
dt Date
|
||||||
s String
|
s DateTime
|
||||||
CREATE TABLE test.alter ( d Date, k UInt64, i32 Int32, dt String, s String) ENGINE = MergeTree(d, k, 8192)
|
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 13:26:50 100500
|
2015-01-01 6 38 2014-07-15 1970-01-02 06:55:00
|
||||||
2015-01-01 7 39 2014-07-14 13:26:50 0
|
2015-01-01 7 39 2014-07-14 0000-00-00 00:00:00
|
||||||
2015-01-01 8 40 2012-12-12 12:12:12 0
|
2015-01-01 8 40 2012-12-12 0000-00-00 00:00:00
|
||||||
2015-01-01 9 41 1992-01-01 08:00:00 0
|
2015-01-01 9 41 1992-01-01 0000-00-00 00:00:00
|
||||||
2015-01-01 10 42 0000-00-00 00:00:00 0
|
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;
|
SHOW CREATE TABLE test.alter;
|
||||||
SELECT * FROM test.alter ORDER BY k;
|
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;
|
DESC TABLE test.alter;
|
||||||
SHOW CREATE TABLE test.alter;
|
SHOW CREATE TABLE test.alter;
|
||||||
|
Loading…
Reference in New Issue
Block a user