vdiravka commented on a change in pull request #1494: DRILL-6768: Improve 
to_date, to_time and to_timestamp and correspondi…
URL: https://github.com/apache/drill/pull/1494#discussion_r228967505
 
 

 ##########
 File path: 
exec/java-exec/src/main/codegen/templates/DateIntervalFunctionTemplates/ToDateTypeFunctions.java
 ##########
 @@ -19,9 +19,13 @@
 
 <@pp.dropOutputFile />
 
-<#list dateIntervalFunc.dates as type>
+<#list dateIntervalFunc.varCharToDate as convert>
 
-<@pp.changeOutputFile 
name="/org/apache/drill/exec/expr/fn/impl/GTo${type}.java" />
+<#if !convert.to?contains("Nullable")>
 
 Review comment:
   Why do not add convert.from to `GTo${convert.to}.java` changeOutputFile name 
too?

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to