[
https://issues.apache.org/jira/browse/BEAM-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758397#comment-16758397
]
Ismaël Mejía commented on BEAM-3082:
------------------------------------
[~sivu] Interested to contribute a fix for this one?
> 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
> 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)