Skip to content

Commit

Permalink
Add autodetect arg to external table creation in GCSToBigQueryOperator (
Browse files Browse the repository at this point in the history
#21944)

* Added autodetect parameter in external table creation in GCSToBigQueryOperator
  • Loading branch information
shahkshitij15 committed Mar 6, 2022
1 parent 26e8d6d commit 9020b3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ def execute(self, context: 'Context'):
schema_fields=schema_fields,
source_uris=source_uris,
source_format=self.source_format,
autodetect=self.autodetect,
compression=self.compression,
skip_leading_rows=self.skip_leading_rows,
field_delimiter=self.field_delimiter,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def test_labels_external_table(self, bq_hook):
schema_fields=mock.ANY,
source_uris=mock.ANY,
source_format=mock.ANY,
autodetect=mock.ANY,
compression=mock.ANY,
skip_leading_rows=mock.ANY,
field_delimiter=mock.ANY,
Expand Down Expand Up @@ -181,6 +182,7 @@ def test_description_external_table(self, bq_hook):
schema_fields=mock.ANY,
source_uris=mock.ANY,
source_format=mock.ANY,
autodetect=mock.ANY,
compression=mock.ANY,
skip_leading_rows=mock.ANY,
field_delimiter=mock.ANY,
Expand Down

0 comments on commit 9020b3a

Please sign in to comment.