Skip to content

Commit

Permalink
[AIRFLOW-5152] Change back autodetect default value from False to Tru…
Browse files Browse the repository at this point in the history
…e in GoogleCloudStorageToBigQueryOperator. (#5771)

Set autodetect default value from false to be true to avoid breaking downstream
services using GoogleCloudStorageToBigQueryOperator but not aware of the newly
added autodetect field.

This is to fix the current regression introduced by #3880
  • Loading branch information
bingqinzhou authored and ashb committed Aug 16, 2019
1 parent ef7e37c commit 462ab88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions airflow/contrib/operators/gcs_to_bq.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class GoogleCloudStorageToBigQueryOperator(BaseOperator):
Not applicable for external tables.
:type cluster_fields: list[str]
:param autodetect: [Optional] Indicates if we should automatically infer the
options and schema for CSV and JSON sources. (Default: ``False``).
options and schema for CSV and JSON sources. (Default: ``True``).
Parameter must be setted to True if 'schema_fields' and 'schema_object' are undefined.
It is suggested to set to True if table are create outside of Airflow.
:type autodetect: bool
Expand Down Expand Up @@ -178,7 +178,7 @@ def __init__(self,
external_table=False,
time_partitioning=None,
cluster_fields=None,
autodetect=False,
autodetect=True,
encryption_configuration=None,
*args, **kwargs):

Expand Down

0 comments on commit 462ab88

Please sign in to comment.