Skip to content

Commit

Permalink
Merge pull request RealSelf#17 from dreamdata-io/schema_type-refere…
Browse files Browse the repository at this point in the history
…nced-before-assignment-bug

string case fallback where format is not supported
  • Loading branch information
paddie authored Jan 30, 2020
2 parents 4ac3341 + a055cf1 commit d18206e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions target_bigquery/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ def define_schema(field, name, required_fields=None):
schema_type = "timestamp"
elif format == "date":
schema_type = "date"
elif format == "time":
schema_type = "time"
else:
schema_type = field_type
elif field_type == "number":
schema_type = "FLOAT"
else:
Expand Down

0 comments on commit d18206e

Please sign in to comment.