You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Kenneth Knowles (JIRA)" <ji...@apache.org> on 2018/01/19 15:27:00 UTC

[jira] [Assigned] (BEAM-3082) TextIO.withoutSharding sets shard template name to empty string instead of null

     [ https://issues.apache.org/jira/browse/BEAM-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kenneth Knowles reassigned BEAM-3082:
-------------------------------------

    Assignee: Eugene Kirpichov  (was: Kenneth Knowles)

> TextIO.withoutSharding sets shard template name to empty string instead of null
> -------------------------------------------------------------------------------
>
>                 Key: BEAM-3082
>                 URL: https://issues.apache.org/jira/browse/BEAM-3082
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-core
>    Affects Versions: 2.1.0, 2.2.0
>            Reporter: Mikko Sivulainen
>            Assignee: Eugene Kirpichov
>            Priority: Minor
>
> If TextIO.Write.withoutSharding() is called, it sets shard template name to empty string by calling withShardTemplateName(""). This causes an issue if custom filename policy is also set, since checks in expand() require that shardTemplateName is null if filenamePolicy is set.
> Only workaround is currently to explicitly call withShardNAmeTemplate(null) after calling withoutSharding() resulting in an ugly code.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)