[ 
https://issues.apache.org/jira/browse/HIVE-5286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13818358#comment-13818358
 ] 

Xuefu Zhang commented on HIVE-5286:
-----------------------------------

Patch committed to trunk. Thanks to Szehon for the contribution.

> 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
>            Assignee: Szehon Ho
>             Fix For: 0.13.0
>
>         Attachments: HIVE-5286.patch
>
>
> {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)

Reply via email to