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 96663200D0F for ; Fri, 29 Sep 2017 23:02:03 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 94FE71609ED; Fri, 29 Sep 2017 21:02:03 +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 DD04F1609BC for ; Fri, 29 Sep 2017 23:02:02 +0200 (CEST) Received: (qmail 91016 invoked by uid 500); 29 Sep 2017 21:02:02 -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 91006 invoked by uid 99); 29 Sep 2017 21:02:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2017 21:02:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id A9858180C7C for ; Fri, 29 Sep 2017 21:02:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id M07U9k-7H_sm for ; Fri, 29 Sep 2017 21:02:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id E5D255FD33 for ; Fri, 29 Sep 2017 21:02:00 +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 7F9A0E00DF for ; Fri, 29 Sep 2017 21:02:00 +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 388F1242AF for ; Fri, 29 Sep 2017 21:02:00 +0000 (UTC) Date: Fri, 29 Sep 2017 21:02:00 +0000 (UTC) From: "Daniel Oliveira (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (BEAM-3003) In WithKeys, get coder for key more safely. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Sep 2017 21:02:03 -0000 [ https://issues.apache.org/jira/browse/BEAM-3003?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Daniel Oliveira reassigned BEAM-3003: ------------------------------------- Assignee: (was: Kenneth Knowles) > In WithKeys, get coder for key more safely. > ------------------------------------------- > > Key: BEAM-3003 > URL: https://issues.apache.org/jira/browse/BEAM-3003 > Project: Beam > Issue Type: Improvement > Components: sdk-java-core > Reporter: Daniel Oliveira > Priority: Minor > > In WithKeys.java currently the coder for the key type is chosen when the transform is expanded. This means that there's no way to directly get the type of the input elements, instead the type is inferred from the function or from a java Class<> object. This means there can be mismatches between the actual type of the input and the coder used. > WithKeys should be refactored to retrieve the coder in a safer way and avoid the possibility of mismatches. -- This message was sent by Atlassian JIRA (v6.4.14#64029)