Return-Path: X-Original-To: apmail-hive-commits-archive@www.apache.org Delivered-To: apmail-hive-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E76AF17755 for ; Mon, 27 Oct 2014 22:31:05 +0000 (UTC) Received: (qmail 59999 invoked by uid 500); 27 Oct 2014 22:31:05 -0000 Delivered-To: apmail-hive-commits-archive@hive.apache.org Received: (qmail 59953 invoked by uid 500); 27 Oct 2014 22:31:05 -0000 Mailing-List: contact commits-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hive-dev@hive.apache.org Delivered-To: mailing list commits@hive.apache.org Received: (qmail 59942 invoked by uid 99); 27 Oct 2014 22:31:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 22:31:05 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Oct 2014 22:30:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 965A62388A38; Mon, 27 Oct 2014 22:29:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1634710 - /hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java Date: Mon, 27 Oct 2014 22:29:12 -0000 To: commits@hive.apache.org From: sershe@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20141027222912.965A62388A38@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sershe Date: Mon Oct 27 22:29:12 2014 New Revision: 1634710 URL: http://svn.apache.org/r1634710 Log: HIVE-8575 : CBO: decimal_udf is broken by recent changes (and other tests have type changes) (Sergey Shelukhin, reviewed by Laljo John Pullokkaran) Modified: hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java Modified: hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java URL: http://svn.apache.org/viewvc/hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java?rev=1634710&r1=1634709&r2=1634710&view=diff ============================================================================== --- hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java (original) +++ hive/branches/branch-0.14/ql/src/java/org/apache/hadoop/hive/ql/optimizer/optiq/translator/ASTBuilder.java Mon Oct 27 22:29:12 2014 @@ -167,6 +167,9 @@ class ASTBuilder { type = HiveParser.SmallintLiteral; break; case INTEGER: + val = literal.getValue3(); + type = HiveParser.BigintLiteral; + break; case BIGINT: if (useTypeQualInLiteral) { val = literal.getValue3() + "L";