clintropolis commented on code in PR #12714:
URL: https://github.com/apache/druid/pull/12714#discussion_r910593792


##########
sql/src/main/java/org/apache/druid/sql/calcite/planner/DruidRexExecutor.java:
##########
@@ -172,7 +172,8 @@ public void reduce(
           // complex constant is not reducible, so just leave it as an 
expression
           literal = constExp;
         } else {
-          if (exprResult.isArray()) {
+          if (!exprResult.type().isPrimitive()) {
+            // just leave complex expresions alone
             // just leave array expressions on multi-value strings alone, 
we're going to push them down into a virtual
             // column selector anyway

Review Comment:
   i'll try to clear it up a bit, complex expressions and array expressions are 
separate, we just want to ignore them both for slightly different reasons



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to