apache / doris

Apache Doris is an easy-to-use, high performance and unified analytics database.
https://doris.apache.org
Apache License 2.0
12.72k stars 3.28k forks source link

[Enhancement] (nereids)implement TruncateTableCommand in nereids #42584

Open LiBinfeng-01 opened 2 weeks ago

LiBinfeng-01 commented 2 weeks ago

Search before asking

Description

TruncateTableCommand is supported in legacy planner but not in nereids(new doris fe planner). you need implement it in nereids. The DorisParser.g4 has the syntax definition already(see bellow). And you can check TruncateTableStmt.java in legacy planner to see what the command does and migrate it to nereids planner unsupportedDmlStatement: TRUNCATE TABLE multipartIdentifier specifiedPartition?

Solution

No response

Are you willing to submit PR?

Code of Conduct

Vallishp commented 2 weeks ago

i will pick it. thanks