Skip to content

Commit

Permalink
Chore: make schema get_type more lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
tobymao committed Jun 10, 2023
1 parent e00647a commit b3f9078
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sqlglot/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,6 @@ def get_column_type(
elif isinstance(column_type, str):
return self._to_data_type(column_type.upper(), dialect=dialect)

raise SchemaError(f"Unknown column type '{column_type}'")

return exp.DataType.build("unknown")

def _normalize(self, schema: t.Dict) -> t.Dict:
Expand Down

0 comments on commit b3f9078

Please sign in to comment.