blakehice4 opened a new issue, #27069:
URL: https://github.com/apache/beam/issues/27069

   ### 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
   - [X] Component: Java SDK
   - [ ] Component: Go SDK
   - [ ] Component: Typescript SDK
   - [X] 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


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to