Skip to content

Commit 462ab88

Browse files
bingqinzhouashb
authored andcommitted
[AIRFLOW-5152] Change back autodetect default value from False to True in GoogleCloudStorageToBigQueryOperator. (apache#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 apache#3880
1 parent ef7e37c commit 462ab88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

airflow/contrib/operators/gcs_to_bq.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ class GoogleCloudStorageToBigQueryOperator(BaseOperator):
133133
Not applicable for external tables.
134134
:type cluster_fields: list[str]
135135
:param autodetect: [Optional] Indicates if we should automatically infer the
136-
options and schema for CSV and JSON sources. (Default: ``False``).
136+
options and schema for CSV and JSON sources. (Default: ``True``).
137137
Parameter must be setted to True if 'schema_fields' and 'schema_object' are undefined.
138138
It is suggested to set to True if table are create outside of Airflow.
139139
:type autodetect: bool
@@ -178,7 +178,7 @@ def __init__(self,
178178
external_table=False,
179179
time_partitioning=None,
180180
cluster_fields=None,
181-
autodetect=False,
181+
autodetect=True,
182182
encryption_configuration=None,
183183
*args, **kwargs):
184184

0 commit comments

Comments
 (0)