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


   ### What changes were proposed in this pull request?
   In the PR, I propose to override the `sql` and `toString` methods of the 
expressions that implement operators over ANSI intervals 
(`YearMonthIntervalType`/`DayTimeIntervalType`), and replace internal 
expression class names by operators like `*`, `/` and `-`.
   
   ### Why are the changes needed?
   Proposed methods should make the textual representation of such operators 
more readable, and potentially parsable by Spark SQL parser. 
   
   ### Does this PR introduce _any_ user-facing change?
   Yes. This can influence on column names.
   
   
   ### How was this patch tested?
   By running existing test suites for interval and datetime expressions, and 
re-generating the `*.sql` tests:
   ```
   $ build/sbt "sql/testOnly *SQLQueryTestSuite -- -z interval.sql"
   $ build/sbt "sql/testOnly *SQLQueryTestSuite -- -z datetime.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.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to