gianm commented on a change in pull request #8744: support for array 
expressions in TransformSpec with ExpressionTransform
URL: https://github.com/apache/incubator-druid/pull/8744#discussion_r343354749
 
 

 ##########
 File path: 
processing/src/main/java/org/apache/druid/segment/transform/ExpressionTransform.java
 ##########
 @@ -90,7 +92,11 @@ private static Object getValueFromRow(final Row row, final 
String column)
     if (column.equals(ColumnHolder.TIME_COLUMN_NAME)) {
       return row.getTimestampFromEpoch();
     } else {
-      return row.getRaw(column);
+      Object raw = row.getRaw(column);
+      if (raw instanceof List) {
+        return ExpressionSelectors.coerceListDimToStringArray((List) raw);
 
 Review comment:
   Is it fair to assume that all Lists are Lists of Strings?
   
   What if the expression selector returns a long array?

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@druid.apache.org
For additional commands, e-mail: commits-h...@druid.apache.org

Reply via email to