apache / doris

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

[Enhancement] (nereids)implement CreateCatalogCommand in nereids #42594

Open LiBinfeng-01 opened 1 month ago

LiBinfeng-01 commented 1 month ago

Search before asking

Description

CreateCatalogCommand 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 CreateCatalogStmt.java in legacy planner to see what the command does and migrate it to nereids planner unsupportedCreateStatement: CREATE CATALOG (IF NOT EXISTS)? catalogName=identifier (WITH RESOURCE resourceName=identifier)? (COMMENT STRING_LITERAL)? properties=propertyClause?

Solution

No response

Are you willing to submit PR?

Code of Conduct

msridhar78 commented 1 day ago

@LiBinfeng-01 I will pick this up