SQL type detection
Detect query, DML, DDL, SHOW and EXPLAIN statement types.
SqlParserXA multi-dialect SQL parsing engine and toolkit
SQL type detection · Table & column lineage · Table/DDL parsing · Function extraction · Parameter extraction and prepared SQL
15+ datasource dialects supported
MySQL
Hive
Doris
StarRocks
ClickHouse
Oracle
PostgreSQL
Spark
OceanBase
SQL Server
Greenplum
TiDBFrom dialect syntax to business semantics — unified contract, unified result, ready to use.
Detect query, DML, DDL, SHOW and EXPLAIN statement types.
Resolve real tables through JOINs, CTEs and subqueries, then parse fields, keys, partitions and buckets.
Trace data flow from source tables to targets in INSERT and CTAS statements.
Map source columns to targets across expressions, functions and CASE clauses.
Extract and deduplicate regular, aggregate and window function names across multiple statements.
Extract dynamic SELECT parameters and produce JDBC placeholder SQL with ordered bindings.
The syntax layer extends dialect Lexer/Parser/AST on Druid; the business layer extends parsing, lineage and rewriting via the ISqlParser contract, aligned by DbType and AST.

Switch version (1.0 / Next) and language (简体中文 / English) from the navbar.
Get started in minutes with multi-dialect parsing, lineage tracing and prepared SQL.