File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 49
49
from google .cloud .bigquery .external_config import CSVOptions
50
50
from google .cloud .bigquery .external_config import GoogleSheetsOptions
51
51
from google .cloud .bigquery .external_config import ExternalSourceFormat
52
+ from google .cloud .bigquery .external_config import HivePartitioningOptions
52
53
from google .cloud .bigquery .format_options import AvroOptions
53
54
from google .cloud .bigquery .format_options import ParquetOptions
54
55
from google .cloud .bigquery .job .base import SessionInfo
161
162
"DmlStats" ,
162
163
"CSVOptions" ,
163
164
"GoogleSheetsOptions" ,
165
+ "HivePartitioningOptions" ,
164
166
"ParquetOptions" ,
165
167
"ScriptOptions" ,
166
168
"TransactionInfo" ,
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def create_table_external_hive_partitioned(table_id: str) -> "bigquery.Table":
50
50
external_config .autodetect = True
51
51
52
52
# Configure partitioning options.
53
- hive_partitioning_opts = bigquery .external_config . HivePartitioningOptions ()
53
+ hive_partitioning_opts = bigquery .HivePartitioningOptions ()
54
54
55
55
# The layout of the files in here is compatible with the layout requirements for hive partitioning,
56
56
# so we can add an optional Hive partitioning configuration to leverage the object paths for deriving
You can’t perform that action at this time.
0 commit comments