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 19A5010CDC for ; Wed, 30 Oct 2013 18:49:31 +0000 (UTC) Received: (qmail 60538 invoked by uid 500); 30 Oct 2013 18:49:29 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 60397 invoked by uid 500); 30 Oct 2013 18:49:29 -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 60272 invoked by uid 500); 30 Oct 2013 18:49:27 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 60195 invoked by uid 99); 30 Oct 2013 18:49:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Oct 2013 18:49:27 +0000 Date: Wed, 30 Oct 2013 18:49:27 +0000 (UTC) From: "Brock Noland (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-5286) Negative test date_literal1.q fails on java7 because the syntax is valid 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-5286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13809472#comment-13809472 ] Brock Noland commented on HIVE-5286: ------------------------------------ Perhaps we can just remove this test. Looks like date_literal3.q has us covered: https://github.com/apache/hive/blob/trunk/ql/src/test/queries/clientnegative/date_literal1.q https://github.com/apache/hive/blob/trunk/ql/src/test/queries/clientnegative/date_literal3.q [~jdere] any preference here? > Negative test date_literal1.q fails on java7 because the syntax is valid > ------------------------------------------------------------------------ > > Key: HIVE-5286 > URL: https://issues.apache.org/jira/browse/HIVE-5286 > Project: Hive > Issue Type: Bug > Affects Versions: 0.12.0 > Reporter: Brock Noland > > {noformat} > [brock@bigboy java-date]$ cat Test.java > import java.sql.Date; > public class Test { > public static void main(String[] args) throws Exception { > System.out.println(Date.valueOf("2001-1-1")); > } > } > [brock@bigboy java-date]$ exec-via-java6 java -cp . Test > Exception in thread "main" java.lang.IllegalArgumentException > at java.sql.Date.valueOf(Date.java:138) > at Test.main(Test.java:4) > [brock@bigboy java-date]$ exec-via-java7 java -cp . Test > 2001-01-01 > {noformat} -- This message was sent by Atlassian JIRA (v6.1#6144)