[
https://issues.apache.org/jira/browse/BEAM-13391?focusedWorklogId=696035&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-696035
]
ASF GitHub Bot logged work on BEAM-13391:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 14/Dec/21 18:35
Start Date: 14/Dec/21 18:35
Worklog Time Spent: 10m
Work Description: satybald commented on a change in pull request #16156:
URL: https://github.com/apache/beam/pull/16156#discussion_r768941900
##########
File path: sdks/python/apache_beam/io/gcp/bigquery_write_it_test.py
##########
@@ -368,9 +376,9 @@ def
test_big_query_write_temp_table_append_schema_update(self):
table_id = '{}.{}'.format(self.dataset_id, table_name)
input_data = [{
- "int64": num, "bool": True, "nested_field": {
+ "int64": num, "bool": True, "nested_field": [{
"fruit": "Apple"
- }
+ }]
Review comment:
it used to be a JSON format only. JSON writer is less restrictive on
that case. When I've added AVRO then found that `fastavro` requires dicts be
surrounded by list
https://github.com/fastavro/fastavro/issues/254#issuecomment-819038448
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 696035)
Remaining Estimate: 45h 50m (was: 46h)
Time Spent: 2h 10m (was: 2h)
> The Apache Avro library failed to parse the header with the following error:
> EOF reached
> ----------------------------------------------------------------------------------------
>
> Key: BEAM-13391
> URL: https://issues.apache.org/jira/browse/BEAM-13391
> Project: Beam
> Issue Type: Bug
> Components: io-py-gcp
> Affects Versions: 2.34.0
> Reporter: Sayat Satybaldiyev
> Priority: P2
> Original Estimate: 48h
> Time Spent: 2h 10m
> Remaining Estimate: 45h 50m
>
> When WriteToBigQuery is done with AVRO file loads, and the load is triggering
> a schema [modification
> job|https://github.com/apache/beam/blob/ad56edbf1fa2e6c19fea23555ecfad015f67174d/sdks/python/apache_beam/io/gcp/bigquery_file_loads.py#L323-L340],
> then following error is triggered:
> {code:java}
> E RuntimeError: BigQuery job
> beam_bq_job_LOAD_AUTOMATIC_JOB_NAME_SCHEMA_MOD_STEP_171_736013176f6ea340cfd22b9f5b575c81_643a0ee608c04300bfbe67c8db85b2b0
> failed. Error Result: <ErrorProto
> E message: 'Error while reading data, error message: The Apache Avro
> library failed to parse the header with the following error: EOF reached'
> E reason: 'invalid'> [while running
> 'WriteToBigQuery/BigQueryBatchFileLoads/WaitForSchemaModJobs']
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)