MaxGekk opened a new pull request #34782: URL: https://github.com/apache/spark/pull/34782
### What changes were proposed in this pull request? In the PR, I propose to expose the existing string expression `StartsWith` and `EndsWith` as functions to Spark SQL. ### Why are the changes needed? To make migration from other systems easier for new Spark users. The functions are popular, and broadly used in other systems. For example, Snowflake: https://docs.snowflake.com/en/sql-reference/functions/startswith.html https://docs.snowflake.com/en/sql-reference/functions/endswith.html Cosmos DB: https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-startswith https://docs.microsoft.com/en-us/azure/cosmos-db/sql/sql-query-endswith ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By running new tests: ``` $ build/sbt "sql/testOnly *SQLQueryTestSuite -- -z string-functions.sql" $ build/sbt "sql/test:testOnly org.apache.spark.sql.expressions.ExpressionInfoSuite" ``` -- 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]
