Repository navigation
Conversation
Adds a typed expression generator, the VoltDB AST and NoREC oracle wiring. Joins between partitioned tables are on their partitioning columns. --avoid-known-bugs (default true) keeps the generator away from VoltDB bugs filed so far: ENG-30493, ENG-30494, ENG-30495, ENG-30496, ENG-30497, ENG-30499, ENG-30500, ENG-30502, ENG-30503, ENG-30504.
…unds Steers the expression generator away from the VoltDB bugs NoREC found, so that a failure is something new (--avoid-known-bugs, default true): - ENG-30504: NOT is never applied directly to OR - ENG-30505, ENG-30509: string constants and LIKE literal prefixes are at most one character; strings are not compared with <, >, <=, >= or BETWEEN - ENG-12656: VARBINARY constants are one byte, VARBINARY comparisons have a constant on one side and are never ordered - ENG-30497: IS NULL operands are leaves with an outer join, on every path - ENG-30506: function calls are printed in parentheses - ENG-30507: no IN predicates with an outer join - ENG-30508: the planner's internal error for a constant DECIMAL IN join filter is an expected error - ENG-30510: no RIGHT JOIN Partition joins use only the partitioning-column equality, which VoltDB needs to see to plan them. DECIMAL overflow in folded constants is an expected error. Adds a NoREC JUnit test and the milestone 2 README.
Workarounds for the bugs the 30-minute NoREC runs found, all under --avoid-known-bugs: - ENG-30511, ENG-30515: ordered numeric comparisons and BETWEEN compare with constants between -126 and 126 - ENG-30512: BETWEEN bounds are constants in ascending order - ENG-30513: a numeric comparison, BETWEEN or IN uses only FLOAT or only exact operands - ENG-30514: primary key columns are NOT NULL - ENG-30516: IS NULL is written NOT (x IS NOT NULL) - ENG-12656: VARBINARY partitioning columns are joined only when their sizes match Also expects "data exception: division by zero" from folded constants. A 30-minute NoREC run (4 threads, seed 20261102) is clean: 112,694 checks, no failures.
This was referenced Nov 3, 2026
Author
|
Superseded by #51, which combines every ENG-30396 PR of this repo into one. This PR's branch is kept, and its description still has this milestone's details and lab results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Milestone 2 of ENG-30396: the VoltDB provider runs SQLancer's NoREC logic-bug oracle, with an expected-errors list tuned so that false positives are rare. Stacked on #1 (milestone 1); review that first.
What it adds
gen/VoltDBExpressionGenerator) and AST nodes (ast/). It builds predicates from columns and constants with AND, OR, NOT, the comparisons, BETWEEN, IN, LIKE, IS [NOT] NULL,+ - * /,||and ABS. Joins follow partitioning: partitioned tables join the first partitioned table on their partitioning columns, and replicated tables are in the FROM list or joined explicitly.--oracle NOREC, now the default.VoltDBErrors), each with the reason it cannot be avoided: arithmetic overflow and division by zero (at run time and in folded constants), and join filters that fold to constants.--avoid-known-bugs(defaulttrue) keeps the generator away from each VoltDB bug listed below, so a failure is something new. Set it tofalseto check a fix.Bugs found
All are filed in ENG, linked to ENG-30396, and have a minimal reproduction in the ticket.
Wrong results:
c IS NULL AND c = 5drops the IS NULL.Errors and crashes: ENG-30495, ENG-30496, ENG-30499, ENG-30504, ENG-30505, ENG-30506, ENG-30508.
Re-found: ENG-12656, still open (a VARBINARY index key longer than the column; comments added).
Testing
mvn verify -DskipTestspasses: formatter, checkstyle, PMD, SpotBugs.TestVoltDB(SMOKE and NOREC) compiles but was not run here. It targets localhost:21212, which was in use by another server.Not in this PR
TLP WHERE (milestone 3), and running on the lab.