MaxGekk commented on a change in pull request #25942: [SPARK-29242][SQL][TEST]
Check results of expression examples
URL: https://github.com/apache/spark/pull/25942#discussion_r328708885
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/datetimeExpressions.scala
##########
@@ -842,7 +842,7 @@ abstract class UnixTime extends ToTimestamp {
examples = """
Examples:
> SELECT _FUNC_(0, 'yyyy-MM-dd HH:mm:ss');
- 1970-01-01 00:00:00
+ 1969-12-31 16:00:00
Review comment:
And you can change your current time zone to `UTC` to see `1970-01-01
00:00:00`:
```sql
spark-sql> set spark.sql.session.timeZone=UTC;
spark.sql.session.timeZone UTC
spark-sql> SELECT from_unixtime(0, 'yyyy-MM-dd HH:mm:ssXXX');
1970-01-01 00:00:00Z
```
----------------------------------------------------------------
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]