Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 274E3F67E for ; Mon, 15 Apr 2013 21:16:17 +0000 (UTC) Received: (qmail 35057 invoked by uid 500); 15 Apr 2013 21:16:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 34808 invoked by uid 500); 15 Apr 2013 21:16:16 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 34797 invoked by uid 500); 15 Apr 2013 21:16:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 34793 invoked by uid 99); 15 Apr 2013 21:16:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 21:16:16 +0000 Date: Mon, 15 Apr 2013 21:16:16 +0000 (UTC) From: "Gunther Hagleitner (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4327) NPE in constant folding with decimal MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-4327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13632201#comment-13632201 ] Gunther Hagleitner commented on HIVE-4327: ------------------------------------------ I think it would be good to have this in 0.11 as well. > NPE in constant folding with decimal > ------------------------------------ > > Key: HIVE-4327 > URL: https://issues.apache.org/jira/browse/HIVE-4327 > Project: Hive > Issue Type: Bug > Reporter: Gunther Hagleitner > Assignee: Gunther Hagleitner > Priority: Minor > Attachments: HIVE-4327.1.q, HIVE-4327.2.patch, HIVE-4327.3.patch > > > The query: > SELECT dec * cast('123456789012345678901234567890.1234567' as decimal) FROM DECIMAL_PRECISION LIMIT 1 > fails with an NPE while constant folding. This only happens when the decimal is out of range of max precision. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira