[
https://issues.apache.org/jira/browse/BEAM-10292?focusedWorklogId=472981&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-472981
]
ASF GitHub Bot logged work on BEAM-10292:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Aug/20 16:59
Start Date: 20/Aug/20 16:59
Worklog Time Spent: 10m
Work Description: lukecwik edited a comment on pull request #12050:
URL: https://github.com/apache/beam/pull/12050#issuecomment-677784438
> > We should update LocalResourceId and drop the isDirectory field
>
> I removed the `isDirectory` field, nevertheless I left `isDirectory`
parameter in the constructor and the factory method untouched. WDYT?
Makes sense since LocalResourceId constructor adds `File.separator` onto the
path.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 472981)
Time Spent: 4h (was: 3h 50m)
> DefaultFilenamePolicy.ParamsCoder loses information whether Params's resource
> ID is file/directory
> --------------------------------------------------------------------------------------------------
>
> Key: BEAM-10292
> URL: https://issues.apache.org/jira/browse/BEAM-10292
> Project: Beam
> Issue Type: Bug
> Components: sdk-java-core
> Reporter: David Janicek
> Priority: P2
> Time Spent: 4h
> Remaining Estimate: 0h
>
> *DefaultFilenamePolicy.ParamsCoder* uses simple *StringUtf8Coder* for
> encoding/decoding *DefaultFilenamePolicy.Params*'s *baseFilename* and
> therefore looses information whether *Params.baseFilename* resource ID is
> file or directory.
> The result is that it's effectively preventing user to define directory as
> *baseFilename provider* when using dynamic destinations because after
> deserialization it's translated to file.
> Solution is easy - use *ResourceIdCoder* for encoding/decoding.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)