diff --git a/airflow/contrib/operators/gcs_to_bq.py b/airflow/contrib/operators/gcs_to_bq.py index 0a8c4978fa903..7b811654b3e15 100644 --- a/airflow/contrib/operators/gcs_to_bq.py +++ b/airflow/contrib/operators/gcs_to_bq.py @@ -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 @@ -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):