snowplow / iglu

Iglu is a machine-readable, open-source schema repository for JSON Schema from the team at Snowplow
http://www.snowplow.io
Apache License 2.0
208 stars 45 forks source link

Schema DDL: fix nullable array casting into string in BigQuery AST #461

Closed chuwy closed 5 years ago

chuwy commented 5 years ago

https://github.com/snowplow/iglu/blob/adc6775a1ded5d5056f15317ecbf607b9cda79bc/0-common/schema-ddl/src/main/scala/com.snowplowanalytics/iglu.schemaddl/bigquery/Field.scala#L51

In order to form REPEATED field, array cannot be nullable.

It means that every ["array", "null"] will be casted into string as last resort.