andiem-bq commented on code in PR #10266:
URL: https://github.com/apache/pinot/pull/10266#discussion_r1106151624


##########
pinot-common/src/main/java/org/apache/pinot/common/function/scalar/ObjectFunctions.java:
##########
@@ -94,33 +94,41 @@ private static Object coalesceVar(Object... objects) {
     return null;
   }
 
-  @ScalarFunction
-  public static Object caseWhen(boolean c1, Object o1, Object oe) {
+  @Nullable
+  @ScalarFunction(nullableParameters = true, names = {"case", "caseWhen", 
"case_when"})

Review Comment:
   Our issue was `case when...then..else..end` with only literals was sent to 
the transform function resulting in multiple rows of same literal result. When 
we added name 'case', it was correctly handled only in broker and returned 1 
result. This was in v1 engine. Would it be treated as case_when if we used v2?



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