You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "metanil (via GitHub)" <gi...@apache.org> on 2026/10/01 18:15:15 UTC

Re: [PR] [SPARK-50593][SQL] SPJ: Support truncate transform via generalized ReducibleFunction API [spark]

metanil commented on code in PR #55885:
URL: https://github.com/apache/spark/pull/55885#discussion_r4158853122


##########
sql/catalyst/src/main/java/org/apache/spark/sql/connector/catalog/functions/ReducibleFunction.java:
##########
@@ -101,6 +155,6 @@ default Reducer<I, O> reducer(
    * @return a reduction function if it is reducible, null if not.
    */
   default Reducer<I, O> reducer(ReducibleFunction<?, ?> otherFunction) {
-    throw new UnsupportedOperationException();
+    return reducer(new Literal<?>[0], otherFunction, new Literal<?>[0]);

Review Comment:
   @peter-toth Just a note. Looks like Spark doesn't have `@implNote` build support. I'll add that one too in the build. 
   Let me know if we don't want to change build file in this PR.



-- 
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: reviews-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org