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


   ### What changes were proposed in this pull request?
   Extend QueryTest instead of SparkFunSuite in ExpressionInfoSuite as in 
SQLQuerySuite.
   
   ### Why are the changes needed?
   After the changes https://github.com/apache/spark/pull/28308, the moved 
tests from SQLQuerySuite became dependent from local time zone settings. And 
tests from ExpressionInfoSuite fail if they run not in the 
`America/Los_Angeles` time zone:
   ```
   [info] - check outputs of expression examples *** FAILED *** (7 seconds, 720 
milliseconds)
   [info]   Function 'from_unixtime', Expression class 
'org.apache.spark.sql.catalyst.expressions.FromUnixTime' "19[70-01-01 
03]:00:00" did not equal "19[69-12-31 16]:00:00" (ExpressionInfoSuite.scala:152)
   ```
   
   ### Does this PR introduce _any_ user-facing change?
   No
   
   ### How was this patch tested?
   By running the modified test suite locally in the `Europe/Moscow` time zone:
   ```
   /build/sbt "test:testOnly *ExpressionInfoSuite"
   ```


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



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

Reply via email to