wForget commented on PR #2614: URL: https://github.com/apache/datafusion-comet/pull/2614#issuecomment-3431489253
> I briefly looked into using Spark APIs to get the signature, but there are some challenges. We may be able to obtain function signatures in these ways: + Get input types from [ExpectsInputTypes](https://github.com/apache/spark/blob/3109488d1f5afc9ef2a419c8972ddb0e9fff6610/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/ExpectsInputTypes.scala#L43) trait + Parse function signatures from example sql, refer: [ExpressionsSchemaSuite.scala](https://github.com/apache/spark/blob/master/sql/core/src/test/scala/org/apache/spark/sql/ExpressionsSchemaSuite.scala) + Parse argument number from function desc, like `_FUNC_(str, charset)` in [org.apache.spark.sql.catalyst.expressions.Encode desc](https://github.com/apache/spark/blob/3109488d1f5afc9ef2a419c8972ddb0e9fff6610/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/stringExpressions.scala#L3155) -- 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]
