MaxGekk opened a new pull request #26031: [SPARK-29362][SQL] Move timestamp 
expressions and tests to separate files
URL: https://github.com/apache/spark/pull/26031
 
 
   ### What changes were proposed in this pull request?
   In the PR, I propose refactoring of date and timestamp expressions by:
   - Moving all timestamp expressions from `datetimeExpressions.scala` to 
`timestampExpressions.scala`
   - Renaming `datetimeExpressions.scala` to `dateExpressions.scala`
   - Moving all timestamp expressions tests from `DateExpressionsSuite.scala` 
to `TimestampExpressionsSuite.scala`.
   - Moving all timestamp functions tests to from `DateFunctionsSuite.scala` to 
`TimestampFunctionsSuite.scala`. 
   
   ### Why are the changes needed?
   The `datetimeExpressions.scala` file has been becoming large. Its size is 
more than 2000 lines, at the moment. Also it contains 2 kind of expressions - 
date expressions and timestamp expressions. To make easier navigation and 
maintainability of date-time expressions, it would be nice to separate the 
expressions. The same reason is applicable for timestamp expressions and 
functions.
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   By existing tests from the test suite `DateExpressionsSuite` and 
`TimestampExpressionSuite`, and by new test suites `TimestampExpressionsSuite` 
and `TimestampFunctionsSuite`.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to