mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
ISSUES-15883 try fix test failure
This commit is contained in:
parent
c8aa007a45
commit
4e285168df
@ -15,7 +15,7 @@ TEST(ParserColumn, AllNonGeneratedColumnOption)
|
||||
{
|
||||
ParserDeclareColumn p_column;
|
||||
|
||||
String input = "col_01 VARCHAR(100) NOT NULL DEFAULT NULL AUTO_INCREMENT UNIQUE KEY PRIMARY KEY COMMENT 'column comment' COLLATE utf-8 "
|
||||
String input = "col_01 VARCHAR(100) NOT NULL DEFAULT NULL AUTO_INCREMENT UNIQUE KEY PRIMARY KEY COMMENT 'column comment' COLLATE utf8 "
|
||||
"COLUMN_FORMAT FIXED STORAGE MEMORY REFERENCES tbl_name (col_01) CHECK 1";
|
||||
ASTPtr ast = parseQuery(p_column, input.data(), input.data() + input.size(), "", 0, 0);
|
||||
EXPECT_EQ(ast->as<ASTDeclareColumn>()->name, "col_01");
|
||||
@ -29,7 +29,7 @@ TEST(ParserColumn, AllNonGeneratedColumnOption)
|
||||
EXPECT_EQ(declare_options->changes["unique_key"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_EQ(declare_options->changes["primary_key"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_EQ(declare_options->changes["comment"]->as<ASTLiteral>()->value.safeGet<DB::String>(), "column comment");
|
||||
EXPECT_EQ(declare_options->changes["collate"]->as<ASTIdentifier>()->name, "utf-8");
|
||||
EXPECT_EQ(declare_options->changes["collate"]->as<ASTIdentifier>()->name, "utf8");
|
||||
EXPECT_EQ(declare_options->changes["column_format"]->as<ASTIdentifier>()->name, "FIXED");
|
||||
EXPECT_EQ(declare_options->changes["storage"]->as<ASTIdentifier>()->name, "MEMORY");
|
||||
EXPECT_TRUE(declare_options->changes["reference"]->as<ASTDeclareReference>());
|
||||
@ -40,7 +40,7 @@ TEST(ParserColumn, AllGeneratedColumnOption)
|
||||
{
|
||||
ParserDeclareColumn p_column;
|
||||
|
||||
String input = "col_01 VARCHAR(100) NULL UNIQUE KEY PRIMARY KEY COMMENT 'column comment' COLLATE utf-8 "
|
||||
String input = "col_01 VARCHAR(100) NULL UNIQUE KEY PRIMARY KEY COMMENT 'column comment' COLLATE utf8 "
|
||||
"REFERENCES tbl_name (col_01) CHECK 1 GENERATED ALWAYS AS (1) STORED";
|
||||
ASTPtr ast = parseQuery(p_column, input.data(), input.data() + input.size(), "", 0, 0);
|
||||
EXPECT_EQ(ast->as<ASTDeclareColumn>()->name, "col_01");
|
||||
@ -52,7 +52,7 @@ TEST(ParserColumn, AllGeneratedColumnOption)
|
||||
EXPECT_EQ(declare_options->changes["unique_key"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_EQ(declare_options->changes["primary_key"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_EQ(declare_options->changes["comment"]->as<ASTLiteral>()->value.safeGet<DB::String>(), "column comment");
|
||||
EXPECT_EQ(declare_options->changes["collate"]->as<ASTIdentifier>()->name, "utf-8");
|
||||
EXPECT_EQ(declare_options->changes["collate"]->as<ASTIdentifier>()->name, "utf8");
|
||||
EXPECT_EQ(declare_options->changes["generated"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_EQ(declare_options->changes["is_stored"]->as<ASTLiteral>()->value.safeGet<UInt64>(), 1);
|
||||
EXPECT_TRUE(declare_options->changes["reference"]->as<ASTDeclareReference>());
|
||||
|
Loading…
Reference in New Issue
Block a user