Repository navigation
#3738 fix: seal JavaCC SQL parser escape hatches — ANTLR is always used now - #3756
Conversation
Code ReviewThis is a solid, well-scoped cleanup that resolves the concrete bug from #3738 (parser tests silently testing the wrong parser). The core migration is correct and the grammar/AST fixes are legitimate gap-fills. A few items worth discussing: Issues to address before merging1. Overly broad exception catch in // Before (precise)
} catch (ParseException e) {
// IGNORE IT
// After (too broad)
} catch (Exception e) {
// IGNORE IT
2. - protected Identifier left;
- protected Expression key;
- protected Expression value;
+ public Identifier left;
+ public Expression key;
+ public Expression value;Widening access modifiers is a red flag — it enlarges the public API surface. If the ANTLR AST builder needs to set these, a package-private accessor or a constructor that accepts the fields would be preferable. What's the motivation for making them 3. Duplicate | identifier (IF NOT EXISTS)? indexType
(METADATA json)?
(ENGINE identifier)?
| identifier (IF NOT EXISTS)? indexType
(ENGINE identifier)?
(METADATA json)?These two alternatives exist only to allow ENGINE and METADATA in either order. ANTLR supports optional clauses in any combinator — consider something like: | identifier (IF NOT EXISTS)? indexType
( (METADATA json) | (ENGINE identifier) )*The duplicate alternatives will cause ambiguity warnings and are harder to maintain. 4. Users who have Minor observations5. Plan files committed to
6. Unused import added to +import org.antlr.v4.runtime.ParserRuleContext;This import was added but What's good
Overall this is good work. The 🤖 Generated with Claude Code |
There was a problem hiding this comment.
Code Review
This pull request implements the plan to "Seal JavaCC SQL Parser Escape Hatches" by removing the ability to invoke the legacy JavaCC parser. Key changes include deprecating the SQL_PARSER_IMPLEMENTATION configuration, migrating production code paths in AbstractProperty and SQLFunctionEval to SQLAntlrParser, and updating the ANTLR grammar and SQLASTBuilder to address syntax gaps. Additionally, numerous test files were refactored to extend AbstractParserTest. Feedback suggests adding the @deprecated tag to the configuration description for consistency and using protected fields with setters in UpdatePutItem to improve encapsulation.
| SQL parser implementation to use. 'antlr' (default) uses the new ANTLR4-based parser with improved error messages. \ | ||
| 'javacc' uses the legacy JavaCC-based parser for backward compatibility.""", | ||
| String.class, "antlr", Set.of("antlr", "javacc")), | ||
| "Deprecated, has no effect. The ANTLR4-based SQL parser is always used.", |
There was a problem hiding this comment.
There was a problem hiding this comment.
The description string is a user-facing runtime value, not a Javadoc comment — adding @Deprecated as literal text in the string does nothing for Java's deprecation mechanism. The codebase already shows the correct pattern: GREMLIN_COMMAND_TIMEOUT uses the actual @Deprecated Java annotation on the enum constant. Adding @Deprecated as a text prefix here would be misleading and inconsistent.
| public Identifier left; | ||
| public Expression key; | ||
| public Expression value; |
There was a problem hiding this comment.
For better encapsulation and consistency with other AST nodes like UpdateIncrementItem, it's preferable to keep these fields protected and provide public fluent setters instead of making them public.
You could add setters like this to UpdatePutItem:
public UpdatePutItem setLeft(Identifier left) {
this.left = left;
return this;
}
public UpdatePutItem setKey(Expression key) {
this.key = key;
return this;
}
public UpdatePutItem setValue(Expression value) {
this.value = value;
return this;
}Then, SQLASTBuilder.visitUpdatePutItem() can be updated to use these setters.
| public Identifier left; | |
| public Expression key; | |
| public Expression value; | |
| protected Identifier left; | |
| protected Expression key; | |
| protected Expression value; |
There was a problem hiding this comment.
Fixed. Reverted fields to protected and added fluent setters matching the UpdateIncrementItem pattern. Updated SQLASTBuilder.visitUpdatePutItem() to use them.
62205ce to
29c3c5a
Compare
PR Review: Seal JavaCC SQL Parser Escape HatchesGood overall goal — removing the JavaCC escape hatches is an important correctness fix after #3738. The core migration in That said, I have several concerns worth addressing before merge. 🔴 Potential Breaking Change:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #3756 +/- ##
==========================================
+ Coverage 64.59% 64.89% +0.29%
==========================================
Files 1580 1580
Lines 115534 115631 +97
Branches 24452 24480 +28
==========================================
+ Hits 74629 75036 +407
+ Misses 30735 30435 -300
+ Partials 10170 10160 -10 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Code Review (supplemental)Good cleanup overall — the core goal of sealing JavaCC escape hatches is achieved cleanly. These are additional items not covered in the prior review. Issues to address before merging1. The comma-separated form 2. - | DECR GT matchProperties? // -->{as:x} anonymous outgoing
+ | DECR GT matchProperties // -->{as:x} anonymous outgoing (properties required)Any MATCH query using bare MATCH {class:Person, as:a} --> {class:Address, as:b} RETURN a, bThe 3.
4. The description text says "Deprecated" but there is no 5.
Minor6. The tests flip What looks good
|
Review responseComment 1 (rejected) — Comment 2 (implemented) — |
|
Review Summary (follow-up): Three prior reviews have covered this PR thoroughly. Summarizing unresolved items after the author response. ADDRESSED: UpdatePutItem setters added (confirmed). The @deprecated annotation should also be placed on the enum constant, not just the description string. STILL UNRESOLVED:
The core parser migration (JavaCC to ANTLR everywhere) is correct and well-executed. Items 2 and 3 need explicit confirmation before merge. Generated with Claude Code |
lvca
left a comment
There was a problem hiding this comment.
Not sure if all the keywords added are not used, like PARALLEL in the query or FORCE in the drop statements.
|
Investigated both keywords (re: review #3756 (review)): PARALLEL — silently ignored in both parsers. Neither FORCE in |
Code Review (final pass)Thank you for the detailed responses. Most concerns have been addressed. Here is a concise summary of what remains: Still needs resolution before merge1. // Current (after this PR)
} catch (Exception e) {
// IGNORE IT
}
} catch (CommandSQLParsingException e) {
// IGNORE IT
}2. // Before
| DECR GT matchProperties? // -->{as:x} anonymous outgoing (optional)
// After
| DECR GT matchProperties // -->{as:x} anonymous outgoing (properties required)The author's last response did not address this. The common MATCH pattern: MATCH {class:Person, as:a} --> {class:Address, as:b} RETURN a, b…has no Please add a 3. // Before
: rid (COMMA rid)*
// After
: rid
| LBRACKET rid (COMMA rid)* RBRACKET
Acknowledged / resolved
The core parser migration is correct and well-executed. Items 1–3 above are the blockers. Generated with Claude Code |
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…arser Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
…gaps - AbstractParserTest now uses SQLAntlrParser instead of SqlParser - SelectStatementTest.emptyCollection() migrated to use SQLAntlrParser directly - Fix SQLParser.g4: matchFilterItemKey restricted to valid keys only (was accepting any identifier) - Fix SQLParser.g4: named parameter :from now supported (FROM is a reserved keyword) - Fix SQLParser.g4: CREATE INDEX grammar for named vs unnamed index forms - Fix SQLParser.g4: UNWIND now supports multiple items separated by commas - Fix SQLParser.g4: TIMEOUT clause now supports EXCEPTION/RETURN options - Fix SQLParser.g4: array selectors improvements (range, IN, NOT IN) - Fix SQLParser.g4: RID_STRING as base expression - Fix SQLASTBuilder.java: UpdatePutItem, InCondition, Timeout, UpdateOperations, UpdateIncrementItem, CreateIndexStatement, StatementExpression, SubqueryExpression - PatternTestParserTest updated to work with ANTLR semantics This completes the JavaCC escape hatch sealing: grep for "new SqlParser" in src/main/java and src/test/java returns zero call-site results. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- AbstractParserTest now uses SQLAntlrParser (the production parser) instead of the legacy JavaCC parser, which was silently hiding gaps - SQLParser.g4: make EXPORT DATABASE url optional; add FORCE to DROP PROPERTY; add INTEGER_LITERAL to DROP/TRUNCATE BUCKET; fix TRUNCATE RECORD to require brackets for multiple RIDs; fix COMMIT RETRY ELSE block to require AND and non-empty body; add STAR to ALTER BUCKET; add legacy quoted-name syntax to CREATE INDEX; add OVERWRITE as allowed identifier for use in WITH clause settings - SQLASTBuilder: fix ClassCastException in ALTER PROPERTY/BUCKET NAME handling; fix DROP/TRUNCATE BUCKET integer ID; fix CREATE INDEX legacy syntax visitor - SubqueryExpression, StatementExpression: add toString(Map,StringBuilder) override so LET subquery round-trips correctly - ImportDatabaseStatement: fix settings key serialization in toString() - ExportDatabaseStatementTestParserTest: add WITH clause test cases Closes #3738 Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Remove FROM from identifier rule (was causing SELECT FROM to parse 'from' as a projection field); allow FROM only in inputParameter for :from named params - Fix createIndexBody ON-clause to accept NULL_STRATEGY/METADATA/ENGINE in any order matching toString() output order; fix positional visitor to check NULL_STRATEGY before ENGINE - Fix createVertexBody to accept BUCKET_IDENTIFIER/BUCKET_NUMBER_IDENTIFIER tokens (bucket:name syntax without a type name); fix visitCreateVertexStmt to handle both forms - Make DECR GT and ARROW_LEFT MINUS require matchProperties in matchMethod and nestedMatchMethod, preventing consecutive arrows without node filter - Add bucket value validation in visitMatchFilterItem to reject float literals (only integer ID or identifier name allowed) - Fix tryExtractIntegerLiteral to throw on FloatingPoint/PNumber values, rejecting foo[1....5] range selectors with float endpoints - Fix PInteger construction in BUCKET_NUMBER_IDENTIFIER handling (was passing value as node id; use setValue() instead) - Add PARALLEL keyword to lexer and selectStatement as optional trailing hint for legacy OrientDB compatibility Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Add RID_STRING token for quoted "@Rid" form in lexer - Allow RID_STRING in stringLiteral expression alternative - Fix COMMIT RETRY ELSE block to not require trailing AND FAIL/CONTINUE Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
- Restore (AS? identifier)? in fromIdentifier grammar rule - Fix visitFromIdentifier to use identifier(0) for the type name - Update SelectStatementTest: bare aliases without AS are valid SQL Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
Follow the same encapsulation pattern as UpdateIncrementItem: keep fields protected and expose public fluent setters. Update SQLASTBuilder to use the new setters instead of direct field assignment. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
SQLASTBuilder.visitDropPropertyStmt() was not setting stmt.force, so DROP PROPERTY Foo.bar FORCE was silently ignoring the flag and throwing an error when dependent indexes existed instead of dropping them. Add assertion test to cover both force=true and force=false. PARALLEL in SELECT has always been a no-op in both parsers (OrientDB backward-compat keyword with no implementation), so no change needed. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
b8a4922 to
d104fe4
Compare
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
🟢 Coverage 86.71% diff coverage · -8.27% coverage variation
Metric Results Coverage variation ✅ -8.27% coverage variation Diff coverage ✅ 86.71% diff coverage Coverage variation details
Coverable lines Covered lines Coverage Common ancestor commit (60257e1) 115534 84827 73.42% Head commit (d104fe4) 146746 (+31212) 95613 (+10786) 65.16% (-8.27%) Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch:
<coverage of head commit> - <coverage of common ancestor commit>Diff coverage details
Coverable lines Covered lines Diff coverage Pull request (#3756) 158 137 86.71% Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified:
<covered lines added or modified>/<coverable lines added or modified> * 100%
TIP This summary will be updated as you push new changes. Give us feedback
…[skip ci] Bumps [org.mockito:mockito-core](https://github.com/mockito/mockito) from 5.20.0 to 5.21.0. Release notes *Sourced from [org.mockito:mockito-core's releases](https://github.com/mockito/mockito/releases).* > v5.21.0 > ------- > > *Changelog generated by [Shipkit Changelog Gradle Plugin](https://github.com/shipkit/shipkit-changelog)* > > #### 5.21.0 > > * 2025-12-09 - [17 commit(s)](mockito/mockito@v5.20.0...v5.21.0) by Giulio Longfils, Joshua Selbo, Woongi9, Zylox, dependabot[bot] > * Bump graalvm/setup-graalvm from 1.4.3 to 1.4.4 [([ArcadeData#3768](https://redirect.github.com/mockito/mockito/issues/3768))]([mockito/mockito#3768](https://redirect.github.com/mockito/mockito/pull/3768)) > * Bump graalvm/setup-graalvm from 1.4.2 to 1.4.3 [([ArcadeData#3767](https://redirect.github.com/mockito/mockito/issues/3767))]([mockito/mockito#3767](https://redirect.github.com/mockito/mockito/pull/3767)) > * Bump actions/checkout from 5 to 6 [([ArcadeData#3765](https://redirect.github.com/mockito/mockito/issues/3765))]([mockito/mockito#3765](https://redirect.github.com/mockito/mockito/pull/3765)) > * Adds output of matchers to potential mismatch; Fixes [ArcadeData#2468](https://redirect.github.com/mockito/mockito/issues/2468) [([ArcadeData#3760](https://redirect.github.com/mockito/mockito/issues/3760))]([mockito/mockito#3760](https://redirect.github.com/mockito/mockito/pull/3760)) > * Forbid mocking WeakReference with inline mock maker [([ArcadeData#3759](https://redirect.github.com/mockito/mockito/issues/3759))]([mockito/mockito#3759](https://redirect.github.com/mockito/mockito/pull/3759)) > * StackOverflowError when mocking WeakReference [([ArcadeData#3758](https://redirect.github.com/mockito/mockito/issues/3758))]([mockito/mockito#3758](https://redirect.github.com/mockito/mockito/issues/3758)) > * Bump actions/upload-artifact from 4 to 5 [([ArcadeData#3756](https://redirect.github.com/mockito/mockito/issues/3756))]([mockito/mockito#3756](https://redirect.github.com/mockito/mockito/pull/3756)) > * Bump graalvm/setup-graalvm from 1.4.1 to 1.4.2 [([ArcadeData#3755](https://redirect.github.com/mockito/mockito/issues/3755))]([mockito/mockito#3755](https://redirect.github.com/mockito/mockito/pull/3755)) > * Support primitives in GenericArrayReturnType. [([ArcadeData#3753](https://redirect.github.com/mockito/mockito/issues/3753))]([mockito/mockito#3753](https://redirect.github.com/mockito/mockito/pull/3753)) > * ClassNotFoundException when stubbing array of primitive type on Android [([ArcadeData#3752](https://redirect.github.com/mockito/mockito/issues/3752))]([mockito/mockito#3752](https://redirect.github.com/mockito/mockito/issues/3752)) > * Bump graalvm/setup-graalvm from 1.4.0 to 1.4.1 [([ArcadeData#3744](https://redirect.github.com/mockito/mockito/issues/3744))]([mockito/mockito#3744](https://redirect.github.com/mockito/mockito/pull/3744)) > * Bump gradle/actions from 4 to 5 [([ArcadeData#3743](https://redirect.github.com/mockito/mockito/issues/3743))]([mockito/mockito#3743](https://redirect.github.com/mockito/mockito/pull/3743)) > * Bump org.graalvm.buildtools.native from 0.11.0 to 0.11.1 [([ArcadeData#3738](https://redirect.github.com/mockito/mockito/issues/3738))]([mockito/mockito#3738](https://redirect.github.com/mockito/mockito/pull/3738)) > * Bump com.diffplug.spotless:spotless-plugin-gradle from 7.2.1 to 8.0.0 [([ArcadeData#3735](https://redirect.github.com/mockito/mockito/issues/3735))]([mockito/mockito#3735](https://redirect.github.com/mockito/mockito/pull/3735)) > * Bump graalvm/setup-graalvm from 1.3.7 to 1.4.0 [([ArcadeData#3734](https://redirect.github.com/mockito/mockito/issues/3734))]([mockito/mockito#3734](https://redirect.github.com/mockito/mockito/pull/3734)) > * Bump org.assertj:assertj-core from 3.27.5 to 3.27.6 [([ArcadeData#3733](https://redirect.github.com/mockito/mockito/issues/3733))]([mockito/mockito#3733](https://redirect.github.com/mockito/mockito/pull/3733)) > * Bump errorprone from 2.41.0 to 2.42.0 [([ArcadeData#3732](https://redirect.github.com/mockito/mockito/issues/3732))]([mockito/mockito#3732](https://redirect.github.com/mockito/mockito/pull/3732)) > * Feat: automatically detect class to mock in mockStatic and mockConstruction [([ArcadeData#3731](https://redirect.github.com/mockito/mockito/issues/3731))]([mockito/mockito#3731](https://redirect.github.com/mockito/mockito/pull/3731)) > * Return completed futures for unstubbed Future/CompletionStage in ReturnsEmptyValues [([ArcadeData#3727](https://redirect.github.com/mockito/mockito/issues/3727))]([mockito/mockito#3727](https://redirect.github.com/mockito/mockito/pull/3727)) > * automatically detect class to mock [([ArcadeData#2779](https://redirect.github.com/mockito/mockito/issues/2779))]([mockito/mockito#2779](https://redirect.github.com/mockito/mockito/pull/2779)) > * Incorrect "has following stubbing(s) with different arguments" message when using Argument Matchers [([ArcadeData#2468](https://redirect.github.com/mockito/mockito/issues/2468))]([mockito/mockito#2468](https://redirect.github.com/mockito/mockito/issues/2468)) Commits * [`09d2230`](mockito/mockito@09d2230) Bump graalvm/setup-graalvm from 1.4.3 to 1.4.4 ([ArcadeData#3768](https://redirect.github.com/mockito/mockito/issues/3768)) * [`df3e0cc`](mockito/mockito@df3e0cc) Bump graalvm/setup-graalvm from 1.4.2 to 1.4.3 ([ArcadeData#3767](https://redirect.github.com/mockito/mockito/issues/3767)) * [`04a6e9f`](mockito/mockito@04a6e9f) Bump actions/checkout from 5 to 6 ([ArcadeData#3765](https://redirect.github.com/mockito/mockito/issues/3765)) * [`756a3cf`](mockito/mockito@756a3cf) Add description of matchers to potential mismatch ([ArcadeData#3760](https://redirect.github.com/mockito/mockito/issues/3760)) * [`58ba445`](mockito/mockito@58ba445) Forbid mocking WeakReference with inline mock maker ([ArcadeData#3759](https://redirect.github.com/mockito/mockito/issues/3759)) * [`966d600`](mockito/mockito@966d600) Bump actions/upload-artifact from 4 to 5 ([ArcadeData#3756](https://redirect.github.com/mockito/mockito/issues/3756)) * [`632bf7b`](mockito/mockito@632bf7b) Bump graalvm/setup-graalvm from 1.4.1 to 1.4.2 ([ArcadeData#3755](https://redirect.github.com/mockito/mockito/issues/3755)) * [`8564b43`](mockito/mockito@8564b43) Fix primitives support in GenericArrayReturnType for Android ([ArcadeData#3753](https://redirect.github.com/mockito/mockito/issues/3753)) * [`bf3a809`](mockito/mockito@bf3a809) Bump graalvm/setup-graalvm from 1.4.0 to 1.4.1 ([ArcadeData#3744](https://redirect.github.com/mockito/mockito/issues/3744)) * [`cffddd4`](mockito/mockito@cffddd4) Bump gradle/actions from 4 to 5 ([ArcadeData#3743](https://redirect.github.com/mockito/mockito/issues/3743)) * Additional commits viewable in [compare view](mockito/mockito@v5.20.0...v5.21.0) [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- Dependabot commands and options You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
… always used now (ArcadeData#3756)
Summary
SqlParser(JavaCC) from production code and tests —grep -r "new SqlParser("returns zero resultsStatementCachenow always callsSQLAntlrParser,parseWithJavaCC()removedSQLScriptQueryEngine.parseScript()JavaCC branch removedGlobalConfiguration.SQL_PARSER_IMPLEMENTATIONmarked deprecated (no effect — ANTLR is always used)AbstractProperty.getDefaultValue()andSQLFunctionEval.execute()migrated toSQLAntlrParserSqlParsertoSQLAntlrParser(viaAbstractParserTestrefactor)matchFilterItemKeyrestricted to valid keys only:from(reserved keyword) now supportedCREATE INDEXgrammar for named vs unnamed formsUNWINDwith multiple items,TIMEOUTwithEXCEPTION/RETURNIN,NOT INRID_STRINGas base expressionUpdatePutItem,InCondition,Timeout,UpdateOperations,UpdateIncrementItem,CreateIndexStatementAST fixesTest plan
grep -r "new SqlParser(" engine/src/main/java/ engine/src/test/java/→ zero resultsmvn test -Dtest="*ParserTest*,*StatementTest*,*ScriptTest*"→ 272 tests, 0 failures🤖 Generated with Claude Code