Skip to content

Commit 8eb757b

Browse files
authored
fix: export bigquery.HivePartitioningOptions (#1217)
1 parent 234a4ff commit 8eb757b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

google/cloud/bigquery/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from google.cloud.bigquery.external_config import CSVOptions
5050
from google.cloud.bigquery.external_config import GoogleSheetsOptions
5151
from google.cloud.bigquery.external_config import ExternalSourceFormat
52+
from google.cloud.bigquery.external_config import HivePartitioningOptions
5253
from google.cloud.bigquery.format_options import AvroOptions
5354
from google.cloud.bigquery.format_options import ParquetOptions
5455
from google.cloud.bigquery.job.base import SessionInfo
@@ -161,6 +162,7 @@
161162
"DmlStats",
162163
"CSVOptions",
163164
"GoogleSheetsOptions",
165+
"HivePartitioningOptions",
164166
"ParquetOptions",
165167
"ScriptOptions",
166168
"TransactionInfo",

samples/snippets/create_table_external_hive_partitioned.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def create_table_external_hive_partitioned(table_id: str) -> "bigquery.Table":
5050
external_config.autodetect = True
5151

5252
# Configure partitioning options.
53-
hive_partitioning_opts = bigquery.external_config.HivePartitioningOptions()
53+
hive_partitioning_opts = bigquery.HivePartitioningOptions()
5454

5555
# The layout of the files in here is compatible with the layout requirements for hive partitioning,
5656
# so we can add an optional Hive partitioning configuration to leverage the object paths for deriving

0 commit comments

Comments
 (0)