We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fc55b98 commit d989dcbCopy full SHA for d989dcb
1 file changed
sqlglot/dialects/presto.py
@@ -711,7 +711,9 @@ def bracket_sql(self, expression: exp.Bracket) -> str:
711
def struct_sql(self, expression: exp.Struct) -> str:
712
from sqlglot.optimizer.annotate_types import annotate_types
713
714
- expression = annotate_types(expression, dialect=self.dialect)
+ expression = annotate_types(
715
+ expression, dialect=self.dialect, overwrite_types=False
716
+ )
717
values: t.List[str] = []
718
schema: t.List[str] = []
719
unknown_type = False
0 commit comments