Skip to content

Samples snippet InsertingDataTypes.java is writing byte array to ARRAY<BYTES> instead of BYTES #2875

@forksumit

Description

@forksumit

Samples snippet : https://github.com/googleapis/java-bigquery/blob/main/samples/snippets/src/main/java/com/example/bigquery/InsertingDataTypes.java is writing a byte array to ARRAY<BYTES> column in bigquery (BYTES in REPEATED mode) which gets stored as multiple byte arrays in BigQuery and becomes unserializable on reading.

Currently

  • BigQuery java client doesn't support directly writing byte array to BYTES datatype in bigquery, but converting that byte array to base64 string and then writing via client works smoothly
  • BigQuery java client currently supports writing byte array to ARRAY<BYTES> which should not supported

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/java-bigquery API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions