Fix unit test

This commit is contained in:
Nikolay Degterinsky 2022-06-27 13:49:37 +00:00
parent 7299f81739
commit 84294aefc9

View File

@ -1179,6 +1179,12 @@ public:
if (!wrapLayer()) if (!wrapLayer())
return false; return false;
// Special case for (('a', 'b')) -> tuple(('a', 'b'))
if (!is_tuple && result.size() == 1)
if (auto * literal = result[0]->as<ASTLiteral>())
if (literal->value.getType() == Field::Types::Tuple)
is_tuple = true;
state = -1; state = -1;
} }