You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/03 23:49:19 UTC

[GitHub] [beam] kennknowles opened a new issue, #19354: setting numshards dynamically for TextIO.write()

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

   I go through code for TextIO. It uses WriteFiles  in TypedWrite. Now, WriteFiles has the functionality withNumShards(ValueProvider<java.lang.Integer\>) and [withSharding](https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/io/WriteFiles.html#withSharding-org.apache.beam.sdk.transforms.PTransform-)([PTransform](https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/transforms/PTransform.html)<[PCollection](https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/values/PCollection.html)<[UserT](https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/io/WriteFiles.html)\>,[PCollectionView](https://beam.apache.org/releases/javadoc/2.9.0/org/apache/beam/sdk/values/PCollectionView.html)<java.lang.Integer\>\> sharding) but TextIO or its inner class TypedWrite doesn't have that. It would really be a great to expose that functionality to user.
   
   Are there some issues in implementation that this is not already available?
   
   Imported from Jira [BEAM-6721](https://issues.apache.org/jira/browse/BEAM-6721). Original Jira may contain additional context.
   Reported by: aditya.guru149.


-- 
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: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org