MaxGekk opened a new pull request #26455: [SPARK-29819][SQL] Introduce an enum 
for interval units
URL: https://github.com/apache/spark/pull/26455
 
 
   ### What changes were proposed in this pull request?
   In the PR, I propose an enumeration for interval units with the value 
`Year`, `Month`, `Week`, `Day`, `Hour`, `Minute`, `Second`, `Millisecond`, 
`Microsecond` and `Nanosecond`.
   
   ### Why are the changes needed?
   - This should prevent typos in interval unit names
   - Stronger type checking of unit parameters.
   
   ### Does this PR introduce any user-facing change?
   No
   
   ### How was this patch tested?
   By existing test suites `ExpressionParserSuite` and `IntervalUtilsSuite`
   

----------------------------------------------------------------
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