Repository navigation
refactor: remove Python parity scaffolding from the native compiler - #1087
Merged
Merged
Conversation
Native text helpers no longer carry Python's per-version Unicode tables or need the Python and Unicode versions passed through every binding. Letter, case and repr checks use Rust's Unicode rules; decimal digits keep a small Nd table so non-ASCII digit diagnostics and values are unchanged. Removes the D017 unsupported-Python error, the table generator and parity oracles that only pinned the tables.
The native compiler is the only compiler, so the native-preview engine, the --compiler-engine flag and SQLBUILD_COMPILER_ENGINE, the stage tiers, the fallback and analysis-deferral recorders and the Polyglot site recorder go. The compiler differential runs each corpus project once and checks it against its expectation and golden; the native fallback allow-list is removed.
kvlonge
enabled auto-merge (squash)
October 12, 2026 05:04
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.
Why
The compiler is now native Rust and Python byte-for-byte parity is no longer a goal. The remaining parity scaffolding (engine switch, fallback counters, Python Unicode tables, a PyYAML 1.1 imitation and copies of Python text helpers) adds code and test surface without product value. The temporary 0.156.0 release memory exceptions are also due for removal.
Changes
--compiler-engine,SQLBUILD_COMPILER_ENGINE, native fallback counting and engine comparison; the compiler differential checks each corpus project once against stored goldens.yes/no/on/offand dates are text,017is 17, tabs and%YAMLdirectives load); docs updated.difflibandfnmatchports with an edit-distance suggester and a small wildcard matcher; replace the Python-regex wrapper with standard classes.!!intvalues; drop CI references to deleted tests.LICENSEat the root of thesqlbuild-clisdist; PyPI rejected the 0.156.0 CLI sdist because itsLicense-Filewas missing.Verification
make compiler-differentialwith stage captures and coverage gates: 368 projects as expected.make test: 11,553 passed.make check-cipasses.twine checkpasses and it installssqb.