zhangjun0x01 opened a new issue, #945:
URL: https://github.com/apache/incubator-paimon/issues/945

   ### Search before asking
   
   - [X] I searched in the 
[issues](https://github.com/apache/incubator-paimon/issues) and found nothing 
similar.
   
   
   ### Paimon version
   
   0.4
   
   ### Compute Engine
   
   flink
   
   ### Minimal reproduce step
   
   1. we have a mysql table with `datetime` and `timestamp` columns.
   2. start the paimon mysql  cdc action to sync the mysql data to paimon
   3. result: the timestamp type is correct, and the datetime type is not 
correct.
   4. the time zone of my mysql and computer are all cst-8 
   5. I use flink cdc (2.3 version) to sync the table ,it is correct.
   
   ### What doesn't meet your expectations?
   
   1.mysql table 
   ```
   
   mysql> select * from datatime_test;
   +----+---------------------+---------------------+
   | id | a                   | b                   |
   +----+---------------------+---------------------+
   |  1 | 2023-04-19 13:45:12 | 2023-04-19 13:45:12 |
   +----+---------------------+---------------------+
   1 row in set (0.00 sec)
   
   mysql> show global variables like '%time_zone%';
   +------------------+--------+
   | Variable_name    | Value  |
   +------------------+--------+
   | system_time_zone | CST    |
   | time_zone        | SYSTEM |
   +------------------+--------+
   2 rows in set (0.01 sec)
   
   mysql> desc datatime_test;
   +-------+-----------+------+-----+---------+-------+
   | Field | Type      | Null | Key | Default | Extra |
   +-------+-----------+------+-----+---------+-------+
   | id    | int       | NO   | PRI | NULL    |       |
   | a     | datetime  | YES  |     | NULL    |       |
   | b     | timestamp | YES  |     | NULL    |       |
   +-------+-----------+------+-----+---------+-------+
   3 rows in set (0.01 sec)
   ```
   
   2. paimon table 
   ```
   Flink SQL> select * from datatime_test;
   +----+---------------------+---------------------+
   | id |                   a |                   b |
   +----+---------------------+---------------------+
   |  1 | 2023-04-19 21:45:12 | 2023-04-19 13:45:12 |
   +----+---------------------+---------------------+
   ```
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit a PR?
   
   - [ ] I'm willing to submit a PR!


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

Reply via email to