-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Detected this in #10409
There's a todo left in FunctionOperand as well related to this: https://github.com/apache/pinot/blob/master/pinot-query-runtime/src/main/java/org/apache/pinot/query/runtime/operator/operands/FunctionOperand.java#L53
Essentially after the PR linked above, for the query below a couple of project nodes are merged and the case/when starts returning a Double at runtime which is compared against 16.0 which is a float.
SELECT intCol, CASE WHEN (SELECT SUM(floatCol) FROM {tbl1}) > 16.0 THEN 'Large sum' ELSE 'Small sum' END AS aggVal, strCol FROM {tbl1}
cc: @walterddr
Reactions are currently unavailable