Skip to content

Commit 6c507d8

Browse files
committed
varchar default
1 parent f704e0c commit 6c507d8

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sqlglot/optimizer/annotate_types.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,7 @@ def _get_scope_selects(self, scope: Scope) -> dict[str, dict[str, t.Any]]:
350350
col_types[field_col.name] = alias_node.type
351351
src = first.this
352352
else:
353-
col_types[field_col.name] = exp.DataType.build(
354-
"TEXT", dialect=self.dialect
355-
)
353+
col_types[field_col.name] = exp.DType.VARCHAR.into_expr()
356354
src = first
357355

358356
# Value column types from the IN source columns

0 commit comments

Comments
 (0)