mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
fix test build
This commit is contained in:
parent
70e4933221
commit
6ac24fcf54
@ -87,7 +87,8 @@ TEST_P(ParserTest, parseQuery)
|
|||||||
{
|
{
|
||||||
if (input_text.starts_with("ATTACH"))
|
if (input_text.starts_with("ATTACH"))
|
||||||
{
|
{
|
||||||
auto salt = (dynamic_cast<const ASTCreateUserQuery *>(ast.get())->auth_data)->getSalt().value_or("");
|
// todo arthur
|
||||||
|
auto salt = (dynamic_cast<const ASTCreateUserQuery *>(ast.get())->auth_data.back())->getSalt().value_or("");
|
||||||
EXPECT_TRUE(re2::RE2::FullMatch(salt, expected_ast));
|
EXPECT_TRUE(re2::RE2::FullMatch(salt, expected_ast));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -63,7 +63,8 @@ TEST_P(ParserKQLTest, parseKQLQuery)
|
|||||||
{
|
{
|
||||||
if (input_text.starts_with("ATTACH"))
|
if (input_text.starts_with("ATTACH"))
|
||||||
{
|
{
|
||||||
auto salt = (dynamic_cast<const ASTCreateUserQuery *>(ast.get())->auth_data)->getSalt().value_or("");
|
// todo arthur check
|
||||||
|
auto salt = (dynamic_cast<const ASTCreateUserQuery *>(ast.get())->auth_data.back())->getSalt().value_or("");
|
||||||
EXPECT_TRUE(re2::RE2::FullMatch(salt, expected_ast));
|
EXPECT_TRUE(re2::RE2::FullMatch(salt, expected_ast));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user