Skip to content

State how a binding carries each SQL type: its C type, its codec and its memory image - #284

Merged
estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/binding-crossing-form
Nov 20, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:masterfrom
estebanzimanyi:feat/binding-crossing-form

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

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.

…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.
@estebanzimanyi
estebanzimanyi merged commit 292f98e into MobilityDB:master Nov 20, 2026
3 checks passed
@estebanzimanyi
estebanzimanyi deleted the feat/binding-crossing-form branch November 20, 2026 21:04
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.

1 participant