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 8842410C48 for ; Tue, 20 Jan 2015 15:56:36 +0000 (UTC) Received: (qmail 42104 invoked by uid 500); 20 Jan 2015 15:56:34 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 42035 invoked by uid 500); 20 Jan 2015 15:56:34 -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 42021 invoked by uid 500); 20 Jan 2015 15:56:34 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 42018 invoked by uid 99); 20 Jan 2015 15:56:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2015 15:56:34 +0000 Date: Tue, 20 Jan 2015 15:56:34 +0000 (UTC) From: =?utf-8?Q?Sergio_Pe=C3=B1a_=28JIRA=29?= To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-9396) date_add()/date_sub() should allow tinyint/smallint/bigint arguments in addition to int MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-9396?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Sergio Pe=C3=B1a updated HIVE-9396: ------------------------------ Status: Open (was: Patch Available) Canceling patch to rename attachment, and run patch again. > date_add()/date_sub() should allow tinyint/smallint/bigint arguments in a= ddition to int > -------------------------------------------------------------------------= -------------- > > Key: HIVE-9396 > URL: https://issues.apache.org/jira/browse/HIVE-9396 > Project: Hive > Issue Type: Bug > Components: UDF > Reporter: Jason Dere > Assignee: Sergio Pe=C3=B1a > Attachments: HIVE-9396.3.patch > > > {noformat} > hive> select c1, date_add('1985-01-01', c1) from short1; > FAILED: SemanticException [Error 10014]: Line 1:11 Wrong arguments 'c1': = DATE_ADD() only takes INT types as second argument, got SHORT > {noformat} > We should allow date_add()/date_sub() to take any integral type for the 2= nd argument, rather than just int. -- This message was sent by Atlassian JIRA (v6.3.4#6332)