MaxGekk opened a new pull request #35709:
URL: https://github.com/apache/spark/pull/35709


   ### What changes were proposed in this pull request?
   In the PR, I propose to add two aliases for the `TIMESTAMPDIFF()` function 
introduced by https://github.com/apache/spark/pull/35607:
   - `DATEDIFF()`
   - `DATE_DIFF()`
   
   ### Why are the changes needed?
   1. To make the migration process from other systems to Spark SQL easier.
   2. To achieve feature parity with other DBMSs.
   
   ### Does this PR introduce _any_ user-facing change?
   No. The new aliases just extend Spark SQL API.
   
   ### How was this patch tested?
   1. By running the existing test suites:
   ```
   $ build/sbt "test:testOnly *SQLKeywordSuite"
   ```
   3. and new checks:
   ```
   $ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite -- -z 
date.sql"
   $ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite -- -z 
datetime-legacy.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]

Reply via email to