MaxGekk opened a new pull request, #36688: URL: https://github.com/apache/spark/pull/36688
### What changes were proposed in this pull request? In the PR, I propose to add new alias `EQUAL_NULL` for the `EqualNullSafe` expression and the `<=>` operator. New function returns: - EQUAL_NULL( NULL , NULL ) -> TRUE - EQUAL_NULL( NULL , `<not_null>` ) -> FALSE - EQUAL_NULL( `<not_null>` , NULL ) -> FALSE Otherwise EQUAL_NULL(`<expr1>`, `<expr2>`) is equivalent to `<expr1>` = `<expr2>`. ### Why are the changes needed? To make the migration process from other systems to Spark SQL easier, and achieve feature parity to such systems. For example, Snowflake supports the `EQUAL_NULL` function, see https://docs.snowflake.com/en/sql-reference/functions/equal_null.html. ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? By running new tests: ``` $ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite -- -z null-handling.sql" ``` -- 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]
