mozilla / jsonschema-transpiler

Compile JSON Schema into Avro and BigQuery schemas
Mozilla Public License 2.0
42 stars 10 forks source link

Use `TIMESTAMP` instead of `DATETIME` in BigQuery #69

Closed fbertsch closed 5 years ago

fbertsch commented 5 years ago

The two formats are identical, except only the former can be partitioned on.

fbertsch commented 5 years ago

Eventually we could include a hint from the json-schema on which to use, but the initial implementation will just use TIMESTAMP for the DATETIME type in the ast.