Skip to content

[Bug] show create table 出来的语句执行异常 #56697

@lizhian

Description

@lizhian

Search before asking

  • I had searched in the issues and found no similar issues.

Version

Caused by: java.sql.SQLException: errCode = 2, detailMessage = Syntax error in line 9:
AUTO PARTITION BY RANGE date_trunc(k1, 'year')
^
Encountered: IDENTIFIER
Expected

原因:
实际建表语句是: AUTO PARTITION BY RANGE (date_trunc(k1, 'year'))
show create table语句是: AUTO PARTITION BY RANGE date_trunc(k1, 'year')

少了一个(),导致执行错误

What's Wrong?

Caused by: java.sql.SQLException: errCode = 2, detailMessage = Syntax error in line 9:
AUTO PARTITION BY RANGE date_trunc(k1, 'year')
^
Encountered: IDENTIFIER
Expected

What You Expected?

实际建表语句是: AUTO PARTITION BY RANGE (date_trunc(k1, 'year'))
show create table语句是: AUTO PARTITION BY RANGE date_trunc(k1, 'year')

少了一个(),导致执行错误

How to Reproduce?

No response

Anything Else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions