Skip to content

[Feature Request]: BigqueryIO.java WriteTableRows RangePartitioning support #27069

Open

Description

@blakehice4

What would you like to happen?

Currently when using beam java sdk to write table rows to big query we only have the ability to use TimePartitioning. I would like for the ability to use RangePartitioning

current example:

                tableRows.apply(BigQueryIO.writeTableRows()
                        .to(getTableReference(options.getAnalyticsProject(), dataset, table))
                        .withExtendedErrorInfo()
                        .withCustomGcsTempLocation(ValueProvider.StaticValueProvider.of(options.getGcpTempLocation()))
                        .withClustering(cluster)
                        **.withTimePartitioning(partition)**
                        .withSchema(tableSchema)
                        .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)
                        .withWriteDisposition(writeDisposition)
                        .withMethod(BigQueryIO.Write.Method.FILE_LOADS));

Request Example:

                tableRows.apply(BigQueryIO.writeTableRows()
                        .to(getTableReference(options.getAnalyticsProject(), dataset, table))
                        .withExtendedErrorInfo()
                        .withCustomGcsTempLocation(ValueProvider.StaticValueProvider.of(options.getGcpTempLocation()))
                        .withClustering(cluster)
                        **.withRangePartitioning(partition)**
                        .withSchema(tableSchema)
                        .withCreateDisposition(BigQueryIO.Write.CreateDisposition.CREATE_IF_NEEDED)
                        .withWriteDisposition(writeDisposition)
                        .withMethod(BigQueryIO.Write.Method.FILE_LOADS));

Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner

Activity

  1. github-actions commented on Oct 4, 2026

    @github-actions
    Contributor

    This issue has been marked as stale due to 150 days of inactivity. It will be closed in 30 days if no further activity occurs. If you think that’s incorrect or this issue still needs to be addressed, please simply write any comment. If closed, you can reopen the issue at any time. Thank you for your contributions.

  2. mxtymoshyk commented on Oct 25, 2026

    @mxtymoshyk
    Contributor

    I opened #40790 to add range partitioning to BigQueryIO.Write in the Java SDK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions