Fix COLUMNS transformer

This commit is contained in:
Ivan Lezhankin 2021-04-14 19:36:44 +03:00
parent b099ad467d
commit fd2f5b9ede
3 changed files with 5 additions and 1 deletions

View File

@ -1615,7 +1615,7 @@ bool ParserAlias::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
bool ParserColumnsMatcher::parseImpl(Pos & pos, ASTPtr & node, Expected & expected)
{
ParserKeyword columns("COLUMNS");
ParserList columns_p(std::make_unique<ParserCompoundIdentifier>(true), std::make_unique<ParserToken>(TokenType::Comma), false);
ParserList columns_p(std::make_unique<ParserCompoundIdentifier>(false, true), std::make_unique<ParserToken>(TokenType::Comma), false);
ParserStringLiteral regex;
if (!columns.ignore(pos, expected))

View File

@ -12,3 +12,6 @@ SELECT 1025 == count(n) FROM foo AS t1 ANY LEFT JOIN foo_lc AS t2 ON t1.n == t2.
SELECT 1025 == count(n) FROM foo_lc AS t1 ANY LEFT JOIN foo AS t2 ON t1.n == t2.n;
SELECT 1025 == count(n) FROM foo_lc AS t1 ALL LEFT JOIN foo_lc AS t2 ON t1.n == t2.n;
DROP TABLE foo;
DROP TABLE foo_lc;

View File

@ -87,6 +87,7 @@ SKIP_LIST = [
"01747_join_view_filter_dictionary",
"01748_dictionary_table_dot",
"01780_clickhouse_dictionary_source_loop",
"01804_dictionary_decimal256_type.sql",
]