vvysotskyi commented on a change in pull request #1820: DRILL-7307: casthigh 
for decimal type can lead to the issues with VarDecimalHolder
URL: https://github.com/apache/drill/pull/1820#discussion_r300472041
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/expr/EvaluationVisitor.java
 ##########
 @@ -1126,327 +1131,159 @@ public HoldingContainer 
visitFunctionCall(FunctionCall e, ClassGenerator<?> gene
           + "It should have been converted to FunctionHolderExpression in 
materialization");
     }
 
-    @Override
-    public HoldingContainer 
visitFunctionHolderExpression(FunctionHolderExpression e, ClassGenerator<?> 
generator)
+    private <T> HoldingContainer visitExpression(T e, ClassGenerator<?> 
generator, GetHolderCall getHolder)
         throws RuntimeException {
       if (constantBoundaries.contains(e)) {
         generator.getMappingSet().enterConstant();
-        HoldingContainer c = super.visitFunctionHolderExpression(e, generator);
-        // generator.getMappingSet().exitConstant();
-        // return c;
-        return renderConstantExpression(generator, c);
+        HoldingContainer c = getHolder.call();
 
 Review comment:
   Please rename it to something more meaningful.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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