sreemanamala commented on code in PR #16653:
URL: https://github.com/apache/druid/pull/16653#discussion_r1675366826
##########
processing/src/main/java/org/apache/druid/segment/virtual/ExpressionSelectors.java:
##########
@@ -492,11 +492,26 @@ static Supplier<Object> supplierFromObjectSelector(
return val;
}
};
+ } else if (clazz.isAssignableFrom(Object[].class)) {
+ return () -> {
+ final Object val = selector.getObject();
+ if (val != null) {
+ NonnullPair<ExpressionType, Object[]> coerced =
ExprEval.coerceListToArray(
+ Arrays.asList((Object[]) val),
+ homogenizeMultiValue
Review Comment:
Thanks @clintropolis, Understood. changed it to pass through directly for
Object arrays. I checked on few scenarios and they worked fine. Would this not
create any problem if the underlying Object is not String or Numeric? I tried
Array<Array<String>> and that worked.
--
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]