Skip to content

feat: support wildcard arguments in Oracle VECTOR types - #2845

Merged
manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/oracle-vector-type-wildcards-20261022
Oct 22, 2026
Merged

manticore-projects merged 1 commit into
JSQLParser:masterfrom
minleejae:feat/oracle-vector-type-wildcards-20261022

Conversation

@minleejae

Copy link
Copy Markdown
Contributor

Oracle VECTOR declarations such as VECTOR(*, FLOAT32) and VECTOR(3, *) currently fail to parse. Accept wildcard arguments for VECTOR types and retain them in the existing ColDataType argument list, including the optional third storage-format argument.

The wildcard is restricted to VECTOR arguments. Other type arguments, including existing MySQL vector declarations, keep their current behavior.

Validation covers default and Oracle parser configurations, case-insensitive type names, dense and sparse declarations, AST arguments, SQL deparsing and reparsing, following columns, and rejection of wildcards for other type names.

Oracle reference: Create Tables Using the VECTOR Data Type.

Checks: Maven verify on JDK 21 (11,889 tests, 25 skipped) and Gradle check on JDK 17 (11,907 tests, 25 skipped), with zero failures or errors. Gradle also passed grammar ambiguity, formatting, Checkstyle, PMD and SpotBugs checks. Local formatting checks used upstream/master as the comparison ref because origin/master belongs to the fork.

A short JMH run of JSQLParserBenchmark.parseSQLStatements used JDK 17, the latest parser, 3 forks, 3 x 1-second warmups and 5 x 1-second measurements per fork. Baseline: 18.000 +/- 1.005 ms/op; this change: 18.016 +/- 1.116 ms/op. The intervals overlap; this run does not show a measurable slowdown.

AI assistance: prepared with Codex.

@manticore-projects
manticore-projects merged commit 0472f95 into JSQLParser:master Oct 22, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants