kazantsev-maksim commented on code in PR #4744:
URL: https://github.com/apache/datafusion-comet/pull/4744#discussion_r3791614417


##########
spark/src/main/scala/org/apache/comet/serde/arrays.scala:
##########
@@ -713,9 +713,32 @@ object CometFlatten extends CometExpressionSerde[Flatten] 
with ArraysBase {
   }
 }
 
-object CometArrayFilter extends CometExpressionSerde[ArrayFilter] {
+object CometArrayFilter extends 
CometHighOrderFunction[ArrayFilter]("array_filter") {
 
-  override def getSupportLevel(expr: ArrayFilter): SupportLevel = Compatible()
+  private val UNARY_FUNCTION_EXPECTED =
+    "The array_filter function in DataFusion is limited to one lambda 
parameter"
+
+  override def getUnsupportedReasons(): Seq[String] = 
Seq(UNARY_FUNCTION_EXPECTED)

Review Comment:
   It's my mistake, fixed, thanks.



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