fe/fe-parser/README.md
This module implements the StarRocks SQL parser and defines the Abstract Syntax Tree (AST) for the StarRocks SQL dialect. It converts raw SQL text into a typed AST consumed by the analyzer and optimizer layers.
com.starrocks.sql.parser)com.starrocks.sql.astcom.starrocks.sql.ast (visitor classes and utilities)com.starrocks.sql.analyzer, com.starrocks.sql.optimizer)Note: Exact class names and file layout may evolve; consult sources in the above packages.
The parser is responsible only for steps 1–2.
AstVisitor) for traversal.Pseudo-flow:
When adding new SQL syntax:
com.starrocks.sql.ast.toSql/printer support if applicable.Guidelines:
test/sql/ for correctness and compatibility.StarRocks follows a SQL dialect broadly aligned with common analytics systems and MySQL-like constructs, with StarRocks-specific extensions (e.g., materialized views, lakehouse connectors, resource/session management).
fe/fe-core/src/main/java/com/starrocks/fe/fe-type/ (package com.starrocks.type)com.starrocks.sql.astcom.starrocks.sql.analyzercom.starrocks.sql.optimizer