Sybase IQ SQL Parser for Java
General SQL Parser (GSP) parses Sybase IQ with a dedicated Sybase IQ grammar (separate from the permissive Sybase vendor that spans the whole family) — full AST access, offline syntax validation, formatting, rewriting, and column-level data lineage, including complete procedural SQL support. One commercial SDK — Sybase IQ is available in the Java edition.
Sybase IQ SQL that GSP parses
CREATE HG INDEX ix_prod ON order_items (product_id) Parse it in Java
import gudusoft.gsqlparser.*;
TGSqlParser parser = new TGSqlParser(EDbVendor.dbvsybaseiq);
parser.sqltext = sql; // the Sybase IQ SQL above
if (parser.parse() == 0) {
System.out.println(parser.sqlstatements.size() + " statement(s) parsed");
} else {
System.out.println(parser.getErrormessage());
} Java edition only. The .NET library has no Sybase IQ grammar, so this dialect cannot be parsed from C# or VB.NET. See the .NET SQL Parser SDK for the dialects it does cover.
What GSP handles in Sybase IQ
- IQ specialized indexes: HG, LF, HNG, WD, DATE/TIME
- CREATE JOIN INDEX and SYNCHRONIZE JOIN INDEX
- IQ UTILITIES and dbspace management (CREATE/ALTER DBSPACE)
- LOAD TABLE bulk loading
- BACKUP, RESTORE, and CHECKPOINT
- Procedural SQL: Watcom-SQL and T-SQL procedure, function, and event definitions, with CALL, cursor blocks, and SIGNAL/RESIGNAL handlers
Beyond parsing, the same AST powers table/column extraction, validation, formatting, and column-level lineage for Sybase IQ.
Recent Sybase IQ parser updates
- 2026-08-17 [Sybase IQ] Dedicated IQ vendor with its own grammar, statement splitter, and syntax coverage page
- 2026-08-17 [Sybase IQ] Reject ASE-only statements such as DUMP TRANSACTION, READTEXT, and UPDATE INDEX STATISTICS, naming the product each belongs to
- 2026-08-16 [Sybase] Keep the trailing parameter mode OUTPUT/OUT
Full history in the release notes.
Sybase IQ resources
- Sybase IQ syntax reference — dialect documentation
- Sybase IQ capability data (JSON) — measured construct-by-construct parse coverage, machine-readable
- Java quick start — Maven/Gradle setup and first parse
Common questions
Does GSP parse Sybase IQ stored procedures and procedural SQL?
Yes. GSP parses Watcom-SQL and T-SQL procedure, function, and event definitions, with CALL, cursor blocks, and SIGNAL/RESIGNAL handlers into a full AST — procedure bodies become real statement trees you can traverse, not opaque text blocks. This is what makes lineage and impact analysis work inside procedural code.
Do I need a live Sybase IQ database connection to validate SQL?
No. GSP validates Sybase IQ syntax completely offline. You get error line and column positions, the offending token, and a hint — with no server, driver, or credentials involved.
Can I use the Sybase IQ parser from C# / .NET?
Not currently. Sybase IQ is a Java-edition dialect — the .NET library ships 15 dedicated grammars and Sybase IQ is not one of them, so there is no C# code path for it. Everything else on this page describes the Java SDK. If you need Sybase IQ in .NET, email info@sqlparser.com; customer demand is how dialects get prioritized for the .NET port.
Can GSP extract column-level lineage from Sybase IQ SQL?
Yes. The built-in DataFlowAnalyzer produces column-level lineage, impact analysis, and call graphs from Sybase IQ scripts — it is the engine behind Gudu SQLFlow and the lineage integrations for DataHub and OpenMetadata.