Skip to content

Commit

Permalink
fix: export bigquery.HivePartitioningOptions (#1217)
Browse files Browse the repository at this point in the history
  • Loading branch information
jli committed Apr 14, 2022
1 parent 234a4ff commit 8eb757b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions google/cloud/bigquery/__init__.py
Expand Up @@ -49,6 +49,7 @@
from google.cloud.bigquery.external_config import CSVOptions
from google.cloud.bigquery.external_config import GoogleSheetsOptions
from google.cloud.bigquery.external_config import ExternalSourceFormat
from google.cloud.bigquery.external_config import HivePartitioningOptions
from google.cloud.bigquery.format_options import AvroOptions
from google.cloud.bigquery.format_options import ParquetOptions
from google.cloud.bigquery.job.base import SessionInfo
Expand Down Expand Up @@ -161,6 +162,7 @@
"DmlStats",
"CSVOptions",
"GoogleSheetsOptions",
"HivePartitioningOptions",
"ParquetOptions",
"ScriptOptions",
"TransactionInfo",
Expand Down
2 changes: 1 addition & 1 deletion samples/snippets/create_table_external_hive_partitioned.py
Expand Up @@ -50,7 +50,7 @@ def create_table_external_hive_partitioned(table_id: str) -> "bigquery.Table":
external_config.autodetect = True

# Configure partitioning options.
hive_partitioning_opts = bigquery.external_config.HivePartitioningOptions()
hive_partitioning_opts = bigquery.HivePartitioningOptions()

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

0 comments on commit 8eb757b

Please sign in to comment.