You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by GitBox <gi...@apache.org> on 2018/12/24 09:08:51 UTC

[GitHub] vvysotskyi closed pull request #464: DRILL-4582: TestCastFunctions#testToDateForTimeStamp returns error by timezone difference

vvysotskyi closed pull request #464: DRILL-4582: TestCastFunctions#testToDateForTimeStamp returns error by timezone difference
URL: https://github.com/apache/drill/pull/464
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestCastFunctions.java b/exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestCastFunctions.java
index 23fc54e5dc9..768e6be00fa 100644
--- a/exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestCastFunctions.java
+++ b/exec/java-exec/src/test/java/org/apache/drill/exec/fn/impl/TestCastFunctions.java
@@ -68,7 +68,7 @@ public void testCastByConstantFolding() throws Exception {
 
   @Test // DRILL-3769
   public void testToDateForTimeStamp() throws Exception {
-    final String query = "select to_date(to_timestamp(-1)) as col \n" +
+    final String query = "select to_date(to_timestamp('1969-12-31 23:59:59.0 UTC', 'YYYY-MM-dd HH:mm:ss.s z')) as col \n" +
         "from (values(1))";
 
     testBuilder()


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services