apache / beam

Apache Beam is a unified programming model for Batch and Streaming data processing.
https://beam.apache.org/
Apache License 2.0
7.69k stars 4.2k forks source link

[Bug]: WriteToFiles(output_fn=...) is seemingly unused #30009

Open dlwh opened 6 months ago

dlwh commented 6 months ago

What happened?

There's a ctor argument output_fn to WriteToFiles that isn't used other than setting a member variable that is never read:

https://github.com/apache/beam/blob/0d58d23f2d9c34ae5f068acddc622fa3ac6b0854/sdks/python/apache_beam/io/fileio.py#L542

Issue Priority

Priority: 3 (minor)

Issue Components

tvalentyn commented 5 months ago

agreed, appears to be never used. We could clean it up and force keyword-only arguments after it. It could be a breaking change for some users, so could also not touch it and add a note that it's unused and leftover for backward compatibiltiy.

ima-helikoptaaa commented 5 months ago

.take-issue

riteshghorse commented 4 months ago

@ima-attac-helikoptaaa are you still working on it?