[
https://issues.apache.org/jira/browse/BEAM-12545?focusedWorklogId=632937&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-632937
]
ASF GitHub Bot logged work on BEAM-12545:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Aug/21 14:03
Start Date: 03/Aug/21 14:03
Worklog Time Spent: 10m
Work Description: abergmeier commented on pull request #15265:
URL: https://github.com/apache/beam/pull/15265#issuecomment-891874243
R: @pabloem
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 632937)
Time Spent: 20m (was: 10m)
> WriteToFile should support mime/encoding.
> -----------------------------------------
>
> Key: BEAM-12545
> URL: https://issues.apache.org/jira/browse/BEAM-12545
> Project: Beam
> Issue Type: Improvement
> Components: io-py-files
> Affects Versions: 2.30.0
> Reporter: Andreas Bergmeier
> Assignee: Pablo Estrada
> Priority: P3
> Labels: stale-assigned
> Time Spent: 20m
> Remaining Estimate: 0h
>
> For our use case, we need to write blobs to GCS. Also, we want to have both
> *{{Content-Type}}* and *{{Content-Encoding}}* set for these blobs.
> Since *{{WriteToFiles}}* currently only calls *{{Filesystem.create}}*
> without *{{mime_type}}* and *{{compression_type}}*, the resulting blobs are
> of type octet-stream.
> We imagine this to look something like:
> {code:python}
> metadata = sink.metadata()
> full_file_name, writer = _create_writer(base_path=self.base_path.get(),
> writer_key=(destination, w),
> mime_type=metadata.mime_type,
> compression_type=metadata.compression_type)
> {code}
> WDYT?
--
This message was sent by Atlassian Jira
(v8.3.4#803005)