-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
presto 查询tidb 日期错误 #26
Comments
I use this sql to create table in TiDB, but it throws an exception: |
tidb4.07 , |
I want to test your case, can you provided some sample data? |
定位到问题了 我们业务库 有这样的数据 |
MySQL jdbc driver use ascii code to parse date , but TiKV java client use java class Date. That's why you can't read '2020-00-00' by presto-tidb-connector. We will update TiKV java client to 3.0.1, and you could try presto-tidb-connector after update tikv client to version 3.0.1 merged. |
I'll try it |
However, I also found the problem of enum. If the enum is empty, an error will be reported |
You can try this case |
It will be fixed by tikv-java-client in the future(version 3.0.1+). |
You can try master version with your data now. |
3.01 Illegal dates are also not supported |
We have discussed it with PingCAP. |
你好 这边使用tidb驱动出现的问题,如下图
CREATE TABLE
receiving
(receiving_id
int(11) NOT NULL,expected_date
date NOT NULL DEFAULT '0000-00-00',UNIQUE KEY
udx_receiving_id
(receiving_id
)) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
使用presto tidb驱动查询 和使用mysql驱动查询
The text was updated successfully, but these errors were encountered: