coderfender commented on code in PR #3269:
URL: https://github.com/apache/datafusion-comet/pull/3269#discussion_r2730645854


##########
spark/src/main/scala/org/apache/comet/serde/strings.scala:
##########
@@ -289,6 +289,16 @@ object CometRegExpReplace extends 
CometExpressionSerde[RegExpReplace] {
   }
 }
 
+object CometElt extends CometScalarFunction[Elt]("elt") {
+
+  override def getSupportLevel(expr: Elt): SupportLevel = {
+    if (expr.failOnError) {
+      return Unsupported(Some("failOnError=true is not supported"))
+    }

Review Comment:
   We also might want to check if the inputs are a number and an array to make 
sure we terminate early in case the user provides malformed input



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