@@ -480,7 +480,7 @@ public void testManageTable() {
480480 // After
481481 statement .execute ("COMMENT ON COLUMN table2.region_id IS '重庆'" );
482482 statement .execute ("COMMENT ON COLUMN table2.region_id IS NULL" );
483- statement .execute ("COMMENT ON COLUMN test2.table2.time IS 'recent'" );
483+ statement .execute ("COMMENT ON COLUMN test2.table2.t1 IS 'recent'" );
484484 statement .execute ("COMMENT ON COLUMN test2.table2.region_id IS ''" );
485485
486486 comments = new String [] {"recent" , "" , null , null , "fast" };
@@ -527,7 +527,7 @@ public void testManageTable() {
527527 }
528528
529529 try {
530- statement .execute ("alter table table2 drop column time " );
530+ statement .execute ("alter table table2 drop column t1 " );
531531 } catch (final SQLException e ) {
532532 assertEquals ("701: Dropping tag or time column is not supported." , e .getMessage ());
533533 }
@@ -619,8 +619,14 @@ public void testManageTable() {
619619
620620 // Test time column
621621 // More time column tests are included in other IT
622- statement .execute ("create table test100 (time time)" );
623- statement .execute ("create table test101 (time timestamp time)" );
622+ statement .execute ("create table test100 (t1 time)" );
623+ statement .execute ("create table test101 (t1 timestamp time)" );
624+
625+ TestUtils .assertResultSetEqual (
626+ statement .executeQuery ("show create table test100" ),
627+ "Table,Create Table," ,
628+ Collections .singleton (
629+ "table2,CREATE TABLE \" test100\" (\" t1\" TIMESTAMP TIME) WITH (ttl=6600000)," ));
624630 } catch (final SQLException e ) {
625631 e .printStackTrace ();
626632 fail (e .getMessage ());
0 commit comments