drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jihun Kang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-4583) Test fails on TestNewDateFunctions#testIsDate
Date Wed, 06 Apr 2016 02:20:25 GMT
Jihun Kang created DRILL-4583:
---------------------------------

             Summary: Test fails on TestNewDateFunctions#testIsDate
                 Key: DRILL-4583
                 URL: https://issues.apache.org/jira/browse/DRILL-4583
             Project: Apache Drill
          Issue Type: Bug
          Components: Functions - Drill
            Reporter: Jihun Kang
            Priority: Minor


When supplying negative time millis from java date to joda datetime, joda datetime does not
correctly translate to the expected value. Here is error log when running a single test case.

{noformat}
Running org.apache.drill.exec.fn.impl.TestNewDateFunctions#testIsDate

java.lang.Exception: After matching 0 records, did not find expected record in result set:
`res1` : 1899-12-31T23:27:52.000+08:27:52, 


Some examples of expected records:`res1` : 1899-12-31T23:27:52.000+08:27:52, 
`res1` : 3500-01-01T00:00:00.000+09:00, 
`res1` : 2000-12-31T00:00:00.000+09:00, 
`res1` : null, 
`res1` : null, 
`res1` : null, 


 Some examples of records returned by the test query:`res1` : 1900-01-01T00:00:00.000+08:27:52,

`res1` : 3500-01-01T00:00:00.000+09:00, 
`res1` : 2000-12-31T00:00:00.000+09:00, 
`res1` : null, 
`res1` : null, 
`res1` : null, 


	at org.apache.drill.DrillTestWrapper.compareResults(DrillTestWrapper.java:640)
	at org.apache.drill.DrillTestWrapper.compareUnorderedResults(DrillTestWrapper.java:371)
	at org.apache.drill.DrillTestWrapper.run(DrillTestWrapper.java:128)
	at org.apache.drill.exec.fn.impl.TestNewDateFunctions.testIsDate(TestNewDateFunctions.java:61)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:606)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message