Github user vvysotskyi commented on a diff in the pull request:
https://github.com/apache/drill/pull/1232#discussion_r184061116
--- Diff: exec/java-exec/src/test/java/org/apache/drill/PlanningBase.java
---
@@ -20,12 +20,17 @@
import java.io.IOException;
import java.net.URL;
+import com.google.common.base.Function;
--- End diff --
I tested it manually. I considered 2 options:
1. UDF has an input old decimal type. In this case, function resolver adds
cast from vardecimal to old decimal type which is used in UDF.
2. UDF returns the old decimal type. In this case, Drill casts the result
of UDF to vardecimal.
---