[
https://issues.apache.org/jira/browse/AIRFLOW-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Potiuk resolved AIRFLOW-5685.
-----------------------------------
Fix Version/s: 2.0.0
Resolution: Fixed
> Loading AVRO file from GCS to BQ throwing ValueError
> ----------------------------------------------------
>
> Key: AIRFLOW-5685
> URL: https://issues.apache.org/jira/browse/AIRFLOW-5685
> Project: Apache Airflow
> Issue Type: Bug
> Components: gcp
> Affects Versions: 2.0.0
> Reporter: Ryan Yuan
> Assignee: Ryan Yuan
> Priority: Critical
> Fix For: 2.0.0
>
>
> Using {{GoogleCloudStorageToBigQueryOperator to load AVRO file is causing
> exception as follows:}}
>
> {{Traceback (most recent call last):
> File "/Users/ryanyuan/dev/airflow/airflow/models/taskinstance.py", line
> 932, in _run_raw_task
> result = task_copy.execute(context=context)
> File "/Users/ryanyuan/dev/airflow/airflow/operators/gcs_to_bq.py", line
> 293, in execute
> encryption_configuration=self.encryption_configuration)
> File "/Users/ryanyuan/dev/airflow/airflow/gcp/hooks/bigquery.py", line
> 1290, in run_load
> backward_compatibility_configs)
> File "/Users/ryanyuan/dev/airflow/airflow/gcp/hooks/bigquery.py", line
> 2374, in _validate_src_fmt_configs
> .format(k, source_format))*ValueError: skipLeadingRows is not a valid
> src_fmt_configs for type AVRO.*}}
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)