You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The written json is a single escaped string ( "{"a":"b"}" ) using FILE_LOAD method. But the string is unescaped using STORAGE_WRITE_API or STREAMING_INSERT method ( {"a":"b"} ).
What happened?
BigQueryIO document says FILE_LOAD not support JSON type.
https://github.com/apache/beam/blob/master/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java#L1841
And when specifying schema to use avro, validation logic causes error.
beam/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigquery/BigQueryIO.java
Line 3078 in 948af30
But currently, It seems JSON type works well with load api.
I think now we can remove this validation and modify document.
Issue Priority
Priority: 3
Issue Component
Component: extensions-java-gcp
The text was updated successfully, but these errors were encountered: