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_r300467875
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/DrillSimpleFuncHolder.java
##########
@@ -129,6 +130,8 @@ protected HoldingContainer
generateEvalBody(ClassGenerator<?> g, HoldingContaine
JConditional jc = sub._if(e);
jc._then().assign(out.getIsSet(), JExpr.lit(0));
sub = jc._else();
+ } else if (holderExpr.getMajorType().getMode() == DataMode.OPTIONAL){
Review comment:
Please fix formatting
```suggestion
} else if (holderExpr.getMajorType().getMode() == DataMode.OPTIONAL) {
```
----------------------------------------------------------------
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