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 A511E9E8F for ; Sat, 21 Jan 2012 03:07:19 +0000 (UTC) Received: (qmail 16767 invoked by uid 500); 21 Jan 2012 03:07:19 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 15885 invoked by uid 500); 21 Jan 2012 03:07:11 -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 15864 invoked by uid 500); 21 Jan 2012 03:07:08 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 15849 invoked by uid 99); 21 Jan 2012 03:07:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 03:07:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Jan 2012 03:07:05 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 842AF158014 for ; Sat, 21 Jan 2012 03:06:44 +0000 (UTC) Date: Sat, 21 Jan 2012 03:06:44 +0000 (UTC) From: "Phabricator (Updated) (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: <1537317365.62606.1327115204573.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1752349520.11179.1325791719367.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (HIVE-2694) Add FORMAT UDF MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HIVE-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Phabricator updated HIVE-2694: ------------------------------ Attachment: HIVE-2694.D1149.3.patch zhenxiao updated the revision "HIVE-2694 [jira] Add FORMAT UDF". Reviewers: JIRA, cwsteinbach HIVE-2694: Carl's comments addressed also accepts integer as X value to format add testcases for Long/Double boundary values currently using -9223372036854775807 as Long.MIN_VALUE Found a Hive bug, PrimitiveObjectInspector.getPrimitiveCategory() returns DOUBLE for Long.MIN_VALUE -9223372036854775808. HIVE-2733 is created to track this bug REVISION DETAIL https://reviews.facebook.net/D1149 AFFECTED FILES ql/src/java/org/apache/hadoop/hive/ql/exec/FunctionRegistry.java ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFFormatNumber.java ql/src/test/queries/clientnegative/udf_format_number_wrong1.q ql/src/test/queries/clientnegative/udf_format_number_wrong2.q ql/src/test/queries/clientnegative/udf_format_number_wrong3.q ql/src/test/queries/clientnegative/udf_format_number_wrong4.q ql/src/test/queries/clientnegative/udf_format_number_wrong5.q ql/src/test/queries/clientnegative/udf_format_number_wrong6.q ql/src/test/queries/clientnegative/udf_format_number_wrong7.q ql/src/test/queries/clientpositive/udf_format_number.q ql/src/test/results/clientnegative/udf_format_number_wrong1.q.out ql/src/test/results/clientnegative/udf_format_number_wrong2.q.out ql/src/test/results/clientnegative/udf_format_number_wrong3.q.out ql/src/test/results/clientnegative/udf_format_number_wrong4.q.out ql/src/test/results/clientnegative/udf_format_number_wrong5.q.out ql/src/test/results/clientnegative/udf_format_number_wrong6.q.out ql/src/test/results/clientnegative/udf_format_number_wrong7.q.out ql/src/test/results/clientpositive/show_functions.q.out ql/src/test/results/clientpositive/udf_format_number.q.out > Add FORMAT UDF > -------------- > > Key: HIVE-2694 > URL: https://issues.apache.org/jira/browse/HIVE-2694 > Project: Hive > Issue Type: New Feature > Components: UDF > Reporter: Carl Steinbach > Assignee: Zhenxiao Luo > Attachments: HIVE-2694.D1149.1.patch, HIVE-2694.D1149.2.patch, HIVE-2694.D1149.3.patch > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira