apache / apache/beam

Enable WriteToBigQuery to perform range partitioning

Open
#19,939 0 comments 0 reactions 0 assignees View on GitHub
gcp io new feature P3 python
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

BigQuery team recently [released 1.22.0](https://github.com/googleapis/google-cloud-python/releases/tag/bigquery-1.22.0) which includes the range partitioning feature (here is [an example](https://github.com/googleapis/google-cloud-python/blob/c4a69d44ccea9635b3d9d316b3f545f16538dafe/bigquery/samples/create_table_range_partitioned.py)). 

WriteToBigQuery uses [`additional_bq_parameters`](https://github.com/apache/beam/blob/c1719476b74ec6f68fabea392087607adafc70ef/sdks/python/apache_beam/io/gcp/bigquery.py#L177) to create tables with date partitioning and clustering. It would be great if the same would be possible to create tables with range partitioning.

Imported from Jira [BEAM-8898](https://issues.apache.org/jira/browse/BEAM-8898). Original Jira may contain additional context.
Reported by: samanvp.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.