You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by "ganesh4991 (via GitHub)" <gi...@apache.org> on 2025/03/06 00:20:47 UTC
[I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
ganesh4991 opened a new issue, #34188:
URL: https://github.com/apache/beam/issues/34188
### What happened?
`beam.io.WriteToCsv` does not take respect the `num_shards` argument while writing the output. The workaround for now is to use `beam.io.WriteToText` instead.
### Issue Priority
Priority: 2 (default / most bugs should be filed as P2)
### Issue Components
- [ ] Component: Python SDK
- [ ] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam YAML
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Infrastructure
- [ ] 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: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "ganesh4991 (via GitHub)" <gi...@apache.org>.
ganesh4991 commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-2704783552
cc @tvalentyn
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "Rupsa1234 (via GitHub)" <gi...@apache.org>.
Rupsa1234 commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-2704418286
Thanks for reporting this issue! I have also encountered the same problem where `WriteToCsv` does not respect the `num_shards` parameter, causing all data to be written to a single file instead of multiple shards.
I tested this with Apache Beam Python SDK 2.49.0 on Google Dataflow Runner and observed:
- Expected: `output-00000-of-00005.csv`, `output-00001-of-00005.csv`, etc.
- Actual: Only one `output.csv` file is generated.
Workaround:
Using WriteToText instead solves the issue:
p | "Write to Text" >> beam.io.WriteToText("output", file_name_suffix=".csv", num_shards=5)
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "Rupsa1234 (via GitHub)" <gi...@apache.org>.
Rupsa1234 commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-2704421488
can i work upon this?
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-2817311088
which Beam vesion do you use? I checked the latest code: https://github.com/apache/beam/blob/master/sdks/python/apache_beam/dataframe/io.py#L672, which looks like it honors num_shards
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #34188: [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument.
URL: https://github.com/apache/beam/issues/34188
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "liferoad (via GitHub)" <gi...@apache.org>.
liferoad commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-2704785208
@Rupsa1234 feel free to take it. https://beam.apache.org/contribute/
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-3307265500
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.
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug]: `beam.io.WriteToCsv` ignores `num_shards` argument. [beam]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #34188:
URL: https://github.com/apache/beam/issues/34188#issuecomment-3419640098
This issue has been closed due to lack of activity. If you think that is incorrect, you can reopen the issue at any time.
--
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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org