You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Marek Suscak (Jira)" <ji...@apache.org> on 2021/09/22 13:03:00 UTC

[jira] [Created] (BEAM-12932) File based sink doesn't respect temp_location pipeline option

Marek Suscak created BEAM-12932:
-----------------------------------

             Summary: File based sink doesn't respect temp_location pipeline option
                 Key: BEAM-12932
                 URL: https://issues.apache.org/jira/browse/BEAM-12932
             Project: Beam
          Issue Type: Bug
          Components: io-py-files
    Affects Versions: 2.32.0
            Reporter: Marek Suscak


[Unlike|https://github.com/apache/beam/blob/a92965969fda3d7be5b65996d1a9a5b7dd373119/sdks/python/apache_beam/io/fileio.py#L476-L483] [FileIO module|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.fileio.html], theĀ [FileBasedSink|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.filebasedsink.html] module [doesn't respect|https://github.com/apache/beam/blob/2c619c81082839e054f16efee9311b9f74b6e436/sdks/python/apache_beam/io/filebasedsink.py#L164-L177] the _[temp_location|https://beam.apache.org/releases/pydoc/2.32.0/_modules/apache_beam/options/pipeline_options.html]_ pipeline option. This isn't expected and documented properly in the respective module's documentation

In addition, I couldn't info on what is the difference between [WriteToFiles|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.fileio.html] and [WriteToText|https://beam.apache.org/releases/pydoc/2.32.0/apache_beam.io.textio.html] transforms. It seems that the former uses the FileBasedSink and thus correctly writes temporary files to the temp_location when specified but the latter doesn't do that.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)