You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2019/10/17 01:09:00 UTC

[jira] [Commented] (AIRFLOW-5685) Loading AVRO file from GCS to BQ throwing ValueError

    [ https://issues.apache.org/jira/browse/AIRFLOW-5685?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16953296#comment-16953296 ] 

ASF GitHub Bot commented on AIRFLOW-5685:
-----------------------------------------

ryanyuan commented on pull request #6355: [AIRFLOW-5685] Loading AVRO file from GCS to BQ throwing ValueError
URL: https://github.com/apache/airflow/pull/6355
 
 
   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.
   
   The lines removed in this PR was originally from this [commit](https://github.com/apache/airflow/commit/dd36d90cadde765c6860a4a6bdeb6492a294a685#diff-ee06f8fcbc476ea65446a30160c2a2b2L1245). However, they have been brought back in this [commit](https://github.com/apache/airflow/commit/f4a658642917e377d36afd74730182d70178a981#diff-ee06f8fcbc476ea65446a30160c2a2b2R1240)
   
   Make sure you have checked _all_ steps below.
   
   ### Jira
   
   - [ ] My PR addresses the following [Airflow-5685](https://issues.apache.org/jira/browse/AIRFLOW-5685) issues and references them in the PR title. 
   
   ### Description
   
   - [ ] Here are some details about my PR, including screenshots of any UI changes:
   
   ### Tests
   
   - [ ] My PR adds the following unit tests __OR__ does not need testing for this extremely good reason:
   
   ### Commits
   
   - [ ] My commits all reference Jira issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "[How to write a good git commit message](http://chris.beams.io/posts/git-commit/)":
     1. Subject is separated from body by a blank line
     1. Subject is limited to 50 characters (not including Jira issue reference)
     1. Subject does not end with a period
     1. Subject uses the imperative mood ("add", not "adding")
     1. Body wraps at 72 characters
     1. Body explains "what" and "why", not "how"
   
   ### Documentation
   
   - [ ] In case of new functionality, my PR adds documentation that describes how to use it.
     - All the public functions and the classes in the PR contain docstrings that explain what it does
     - If you implement backwards incompatible changes, please leave a note in the [Updating.md](https://github.com/apache/airflow/blob/master/UPDATING.md) so we can assign it to a appropriate release
   
 
----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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
>
> 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)