Skip to content

Commit

Permalink
Remove extra coercing
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavbhole committed Oct 12, 2023
1 parent 96f660c commit b2ab3f1
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
import org.apache.druid.math.expr.ExprMacroTable;
import org.apache.druid.math.expr.InputBindings;
import org.apache.druid.math.expr.Parser;
import org.apache.druid.segment.virtual.ExpressionSelectors;

import java.util.List;
import java.util.Objects;
Expand Down Expand Up @@ -111,9 +110,7 @@ public Object eval(final Row row)
public List<String> evalDimension(Row row)
{
try {
return Rows.objectToStrings(
ExpressionSelectors.coerceEvalToObjectOrList(expr.eval(InputBindings.forRow(row)))
);
return Rows.objectToStrings(expr.eval(InputBindings.forRow(row)));
}
catch (Throwable t) {
throw new ISE(t, "Could not transform dimension value for %s reason: %s", name, t.getMessage());
Expand Down

0 comments on commit b2ab3f1

Please sign in to comment.