mughilanand commented on issue #63640:
URL: https://github.com/apache/doris/issues/63640#issuecomment-4544099317

   Our system in PST, after Placing time_zone to UTC doris returns the same 
data of spark. When revert to PST then result becomes -1.
   
   mysql> select @@time_zone;
   +---------------------+
   | @@time_zone         |
   +---------------------+
   | America/Los_Angeles |
   +---------------------+
   1 row in set (0.00 sec)
   
   mysql> set time_zone = 'UTC'
       -> ;
   Query OK, 0 rows affected (0.00 sec)
   
   mysql> SELECT id, d, ts
       -> FROM  test_iceberg.test.mughil_test
       -> ORDER BY id;
   +------+------------+----------------------------+
   | id   | d          | ts                         |
   +------+------------+----------------------------+
   |    1 | 1970-01-01 | 1970-01-01 08:00:00.000000 |
   |    2 | 1970-01-02 | 1970-01-02 08:00:00.000000 |
   |    3 | 1977-04-18 | 1977-04-18 08:00:00.000000 |
   |    4 | 1977-04-19 | 1977-04-19 08:00:00.000000 |
   |    5 | 1985-01-31 | 1985-01-31 08:00:00.000000 |
   |    6 | 2000-01-01 | 2000-01-01 08:00:00.000000 |
   +------+------------+----------------------------+
   6 rows in set (0.05 sec)
   
   
   
   mysql> set time_zone = 'America/Los_Angeles'
       -> ;
   Query OK, 0 rows affected (0.00 sec)
   
   mysql> SELECT id, d, ts
       -> FROM test_iceberg.test.mughil_test
       -> ORDER BY id;
   +------+------------+----------------------------+
   | id   | d          | ts                         |
   +------+------------+----------------------------+
   |    1 | 1969-12-31 | 1970-01-01 00:00:00.000000 |
   |    2 | 1970-01-01 | 1970-01-02 00:00:00.000000 |
   |    3 | 1977-04-17 | 1977-04-18 00:00:00.000000 |
   |    4 | 1977-04-18 | 1977-04-19 00:00:00.000000 |
   |    5 | 1985-01-30 | 1985-01-31 00:00:00.000000 |
   |    6 | 1999-12-31 | 2000-01-01 00:00:00.000000 |
   +------+------------+----------------------------+
   6 rows in set (0.03 sec)
   


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

To unsubscribe, e-mail: [email protected]

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