Skip to content

Commit b09c23e

Browse files
committed
varchar default
1 parent 7659e16 commit b09c23e

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
@@ -341,9 +341,7 @@ def _get_scope_selects(self, scope: Scope) -> dict[str, dict[str, t.Any]]:
341341
col_types[field_col.name] = alias_node.type
342342
src = first.this
343343
else:
344-
col_types[field_col.name] = exp.DataType.build(
345-
"TEXT", dialect=self.dialect
346-
)
344+
col_types[field_col.name] = exp.DType.VARCHAR.into_expr()
347345
src = first
348346

349347
# Value column types from the IN source columns

0 commit comments

Comments
 (0)