Mikko Sivulainen created BEAM-3082:
--------------------------------------
Summary: 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: Kenneth Knowles
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
(v6.4.14#64029)