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 761B8200C7C for ; Sun, 7 May 2017 05:36:07 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7495D160BBC; Sun, 7 May 2017 03:36:07 +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 BA7C7160BAD for ; Sun, 7 May 2017 05:36:06 +0200 (CEST) Received: (qmail 43009 invoked by uid 500); 7 May 2017 03:36:06 -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 42998 invoked by uid 99); 7 May 2017 03:36:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 May 2017 03:36:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 9490FC0687 for ; Sun, 7 May 2017 03:36:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id kPxErRG9Rj1V for ; Sun, 7 May 2017 03:36:05 +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 D79B25FBB8 for ; Sun, 7 May 2017 03:36:04 +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 58489E00A0 for ; Sun, 7 May 2017 03:36:04 +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 1063E21B53 for ; Sun, 7 May 2017 03:36:04 +0000 (UTC) Date: Sun, 7 May 2017 03:36:04 +0000 (UTC) From: "James Xu (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (BEAM-2151) Type mapping inconsistent in BeamSqlRow & BeamSqlRowCoder MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 07 May 2017 03:36:07 -0000 [ https://issues.apache.org/jira/browse/BEAM-2151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] James Xu resolved BEAM-2151. ---------------------------- Resolution: Fixed Fix Version/s: Not applicable > Type mapping inconsistent in BeamSqlRow & BeamSqlRowCoder > --------------------------------------------------------- > > Key: BEAM-2151 > URL: https://issues.apache.org/jira/browse/BEAM-2151 > Project: Beam > Issue Type: Bug > Components: dsl-sql > Reporter: James Xu > Assignee: James Xu > Priority: Blocker > Fix For: Not applicable > > > In BeamSqlRow, sql FLOAT is mapping to java Float: > {code:java} > case FLOAT: > if (!(fieldValue instanceof Float)) { > throw new InvalidFieldException( > String.format("[%s] doesn't match type [%s]", fieldValue, fieldType)); > } > break; > {code} > but in BeamSqlRowCoder, sql FLOAT is treated as java Double: > {code:java} > case DOUBLE: > case FLOAT: > doubleCoder.encode(value.getDouble(idx), outStream, nested); > break; > {code} > Let's mapping sql FLOAT consistently to java Float? -- This message was sent by Atlassian JIRA (v6.3.15#6346)