Skip to content

Hive partitioning supported when creating external table #2168

@Garsdal

Description

@Garsdal

Is your feature request related to a problem? Please describe.
The problem is that table = client.create_table(table) does not consider hive_partitioning_options when the table is created. The getter is not called, and we verified that we never make it there when debugging the code.

Describe the solution you'd like

hive_partitioning_options = HivePartitioningOptions.from_api_repr(
        {
            "sourceUriPrefix": source_uri_prefix,
            "requirePartitionFilter": True,
            "mode": "CUSTOM",
        }
    )
table.external_data_configuration.hive_partitioning = hive_partitioning_options
table = client.create_table(table)

Describe alternatives you've considered
We use the SQL supported solution instead.

Metadata

Metadata

Assignees

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions