diff --git a/src/Parsers/ExpressionListParsers.cpp b/src/Parsers/ExpressionListParsers.cpp index 63d21b0f7dc..91c695bb457 100644 --- a/src/Parsers/ExpressionListParsers.cpp +++ b/src/Parsers/ExpressionListParsers.cpp @@ -1179,6 +1179,12 @@ public: if (!wrapLayer()) return false; + // Special case for (('a', 'b')) -> tuple(('a', 'b')) + if (!is_tuple && result.size() == 1) + if (auto * literal = result[0]->as()) + if (literal->value.getType() == Field::Types::Tuple) + is_tuple = true; + state = -1; }