Repository navigation
State how a binding carries each SQL type: its C type, its codec and its memory image - #284
Merged
estebanzimanyi merged 1 commit intoNov 20, 2026
Conversation
…its memory image The catalog states sqlTypes, keyed by SQL type: the C type it stands for (cType), read off the signatures that pair it with a single C value, and whether it is passed by value behind its typedef (byValue); the codec it crosses an engine in, the byte codec of its C type, else its hex WKB, the extended one where the C type states it, which keeps the SRID, else its text where its C type stands for no other SQL type; and the memory image of its C type. Every function named is public. run.py states it last, off the signatures as they are written; parser/sqltypes.py holds the rules, those of JMEOS's SqlModel (tools/codegen_jvm.py: _align, _codecs and its image). Why: MobilityFlink, MobilitySpark, MobilityNebula and MobilityDuck each derived these facts again, JMEOS in its SqlModel, MobilityNebula by importing a vendored copy of it and MobilityDuck in hand tables of its own (PTR_IN, PTR_RET, ARRAY_ELEM), so a fix reached one binding at a time: geometry lost its SRID in all three JVM and Nebula surfaces at once when its hex WKB writer appeared beside its hex EWKB one. Witness: over the catalog of MobilityDB 8e99a344e6, sqlTypes states 76 SQL types, 69 codecs and 64 images, and agrees on every field with JMEOS main's SqlModel (a086d7bc63) given the public functions, as MobilityNebula builds it: 0 differences. tests/test_sqltypes.py: 11 tests, 3 of them over the generated catalog; the suite runs 750 tests.
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.
The catalog states sqlTypes, keyed by SQL type: the C type it stands for (cType), read off the signatures that pair it with a single C value, and whether it is passed by value behind its typedef (byValue); the codec it crosses an engine in, the byte codec of its C type, else its hex WKB, the extended one where the C type states it, which keeps the SRID, else its text where its C type stands for no other SQL type; and the memory image of its C type. Every function named is public. run.py states it last, off the signatures as they are written; parser/sqltypes.py holds the rules, those of JMEOS's SqlModel (tools/codegen_jvm.py: _align, _codecs and its image).
Why: MobilityFlink, MobilitySpark, MobilityNebula and MobilityDuck each derived these facts again, JMEOS in its SqlModel, MobilityNebula by importing a vendored copy of it and MobilityDuck in hand tables of its own (PTR_IN, PTR_RET, ARRAY_ELEM), so a fix reached one binding at a time: geometry lost its SRID in all three JVM and Nebula surfaces at once when its hex WKB writer appeared beside its hex EWKB one.
Witness: over the catalog of MobilityDB 8e99a344e6, sqlTypes states 76 SQL types, 69 codecs and 64 images, and agrees on every field with JMEOS main's SqlModel (a086d7bc63) given the public functions, as MobilityNebula builds it: 0 differences. tests/test_sqltypes.py: 11 tests, 3 of them over the generated catalog; the suite runs 750 tests.