Skip to content

Commit 17b1619

Browse files
h3n4lclaude
andauthored
feat(doris): make lexer case insensitive (#44)
Add `options { caseInsensitive = true; }` to DorisLexer.g4 to support lowercase SQL keywords like `show`, `select`, `from`, etc. Also add regression tests: - routine_load.sql: lowercase `show create routine load` - subquery_comparison.sql: subquery in comparison expression 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <[email protected]>
1 parent 866576a commit 17b1619

File tree

4 files changed

+1808
-1797
lines changed

4 files changed

+1808
-1797
lines changed

doris/DorisLexer.g4

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
lexer grammar DorisLexer;
2121

22+
options { caseInsensitive = true; }
23+
2224
// @members section removed - Java code not compatible with Go target
2325
// Original predicates isValidDecimal() and isNoBackslashEscapes removed
2426

0 commit comments

Comments
 (0)