Skip to content
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

替换Doris DDL Date 类型 #266

Closed
baisui1981 opened this issue Sep 21, 2023 · 0 comments
Closed

替换Doris DDL Date 类型 #266

baisui1981 opened this issue Sep 21, 2023 · 0 comments
Labels
Milestone

Comments

@baisui1981
Copy link
Member

由于原先Doris 自动生成的DDL 中 Date和Datetime 在执行create table 脚本过程中会报以下错误

Caused by: java.sql.SQLException: errCode = 2, detailMessage = Disable to create table with `DATE` type columns, please use `DATEV2`.
	at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3978)
	at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3914)
	at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2530)

Doris 有 v2版本的 date、datetime类型:

  1. https://doris.apache.org/docs/1.2/sql-manual/sql-reference/Data-Types/DATEV2
  2. https://doris.apache.org/docs/1.2/sql-manual/sql-reference/Data-Types/DATETIMEV2/

因此,直接在TIS自动生成的ddl中使用v2 版本日期类型即可

@baisui1981 baisui1981 added this to the v3.8.0 milestone Sep 21, 2023
baisui1981 added a commit to qlangtech/plugins that referenced this issue Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant