You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2018/09/14 08:54:33 UTC

[GitHub] kaxil commented on a change in pull request #3901: [AIRFLOW-2772] BigQuery hook allow specifying both the partition fiel…

kaxil commented on a change in pull request #3901: [AIRFLOW-2772] BigQuery hook allow specifying both the partition fiel…
URL: https://github.com/apache/incubator-airflow/pull/3901#discussion_r217644202
 
 

 ##########
 File path: airflow/contrib/hooks/bigquery_hook.py
 ##########
 @@ -1662,11 +1662,8 @@ def _cleanse_time_partitioning(destination_dataset_table, time_partitioning_in):
 
     time_partitioning_out = {}
     if destination_dataset_table and '$' in destination_dataset_table:
-        if time_partitioning_in.get('field'):
-            raise ValueError(
-                "Cannot specify field partition and partition name"
-                "(dataset.table$partition) at the same time")
-        time_partitioning_out['type'] = 'DAY'
+        if not time_partitioning_in.get('field') and not time_partitioning_in.get("type"):
 
 Review comment:
   Why this check?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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


With regards,
Apache Git Services