Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3423B200C58 for ; Sun, 2 Apr 2017 05:13:46 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 326B3160BA0; Sun, 2 Apr 2017 03:13:46 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 76CCC160B9D for ; Sun, 2 Apr 2017 05:13:45 +0200 (CEST) Received: (qmail 63893 invoked by uid 500); 2 Apr 2017 03:13:44 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 63880 invoked by uid 99); 2 Apr 2017 03:13:44 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Apr 2017 03:13:44 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 01D6A1A017F for ; Sun, 2 Apr 2017 03:13:44 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 669rUP9e5Z7O for ; Sun, 2 Apr 2017 03:13:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9EF345F238 for ; Sun, 2 Apr 2017 03:13:42 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id CFAFDE002B for ; Sun, 2 Apr 2017 03:13:41 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8752B21D63 for ; Sun, 2 Apr 2017 03:13:41 +0000 (UTC) Date: Sun, 2 Apr 2017 03:13:41 +0000 (UTC) From: "Aviem Zur (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BEAM-1858) improve error message when Create.of() is called with an empty iterator MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 02 Apr 2017 03:13:46 -0000 [ https://issues.apache.org/jira/browse/BEAM-1858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aviem Zur updated BEAM-1858: ---------------------------- Component/s: (was: beam-model) sdk-java-core > 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: Frances Perry > > 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)