Doris SQL: add Doris Dialect#2380
Open
finchxxia wants to merge 2 commits into
Open
Conversation
fc16163 to
a55690c
Compare
Contributor
|
2500 lines of a PR are a bit too many, could you fracture this down into smaller reviewable units? |
Contributor
Author
@LucaCappelletti94 Of course, I would do that later and add more info in issue link #2379 |
ecca2d6 to
bffa3fd
Compare
This was referenced Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Doris SQL dialect support to close #2379
This PR introduces
DorisDialectand parser/AST support for common Doris SQL syntax, especially DorisCREATE TABLEclauses, partition/distribution definitions, table properties, Doris column options, and Doris load statements.Changes
Add
DorisDialectAdd Doris
CREATE TABLEsupportENGINE = OLAPDUPLICATE KEY,UNIQUE KEY,AGGREGATE KEYCOMMENTPARTITION BY RANGE/LISTAUTO PARTITIONMAXVALUE/MAX_VALUEDISTRIBUTED BY HASH/RANDOMBUCKETS <n>andBUCKETS AUTOPROPERTIES (...)Add Doris AST structures
Add Doris-specific statement parsing
LOAD DATA INFILECREATE ROUTINE LOADExtend tests
Testing
cargo fmt --check cargo test --test sqlparser_doris