beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-1858) improve error message when Create.of() is called with an empty iterator
Date Thu, 13 Apr 2017 16:20:42 GMT

    [ https://issues.apache.org/jira/browse/BEAM-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967820#comment-15967820
] 

ASF GitHub Bot commented on BEAM-1858:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/beam/pull/2401


> improve error message when Create.of() is called with an empty iterator
> -----------------------------------------------------------------------
>
>                 Key: BEAM-1858
>                 URL: https://issues.apache.org/jira/browse/BEAM-1858
>             Project: Beam
>          Issue Type: Improvement
>          Components: sdk-java-core
>            Reporter: Wesley Tanaka
>            Assignee: Wesley Tanaka
>            Priority: Trivial
>
> The current error copy states:
> "java.lang.IllegalArgumentException: Elements must be provided to construct the default
Create Coder. To Create an empty PCollection, either call Create.empty(Coder), or call 'withCoder(Coder)'
on the result PTransform"
> This is potentially confusing for two reasons:
> 1. "the default Create Coder" assumes a high level of knowledge of how Create class works
> 2. since "Create" is a common word, it may not be immediately clear that Create is referring
to org.apache.beam.sdk.transforms.Create as opposed to the possibility that there might be
a compound noun in Beam model called "Create Coder"



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message