This repository was archived by the owner on Dec 2, 2026. It is now read-only.
Repository navigation
Regenerate the dispatcher's table from the catalog of MobilityDB master - #23
Merged
estebanzimanyi merged 1 commit intoNov 12, 2026
Conversation
estebanzimanyi
force-pushed
the
gen/regenerate-from-master
branch
from
November 12, 2026 18:37
52a6df0 to
8436ea1
Compare
mobilityapi/catalog_gen.py is the table tools/codegen.py writes from the catalog of MEOS-API master cf4d124e6f on MobilityDB master 0bc5f54084, parsed from the source-tree headers as the generated-table job derives it, so a slot keeps the header's spelling (int64) in its cType. The dispatcher serves 3650 functions. Each set, span, span set and temporal value writes its text through set_out, span_out, spanset_out and temporal_out, which the table states, and the per-type writers intset_out, tstzspan_out, tint_out, tfloat_out, tspatial_out and their siblings are not in it. Why. MobilityDB master has one text writer per template, so its catalog states none of the 40 per-type writers the table served; with them, 43 other functions are gone from the catalog (the trgeometry_* restrictions and accessors, tpoint_at_geom, th3index_make, ...) and 16 geometry primitives (geom_area, geog_length, geom_dwithin2d, ...) are no longer exposable. The generated-table job of python.yml, which regenerates the table from the catalog of master and refuses a difference, fails on the table it replaces, and a dispatch of 79 of those 99 names reaches a function the libmeos of master does not export. Witness. Against the table it replaces, 99 functions leave and 99 arrive (set_out, span_out, spanset_out, temporal_out, the ever and always overlaps of a box and a temporal value, those of a temporal point cloud and a point cloud box, the casts of a spatial value to geography, ...); two runs of the generator write the same file. The libmeos of MobilityDB master 0bc5f54084 with every family exports temporal_out and not tfloat_out. Every offline test passes: 66 tests, none skipped (test_app, test_bulk, test_codegen, test_dispatcher, test_movfeat, test_resolvers, test_wire).
estebanzimanyi
force-pushed
the
gen/regenerate-from-master
branch
from
November 12, 2026 18:43
8436ea1 to
301012b
Compare
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
mobilityapi/catalog_gen.py is the table tools/codegen.py writes from the catalog of MEOS-API master cf4d124e6f on MobilityDB master 0bc5f54084, parsed from the source-tree headers as the generated-table job derives it, so a slot keeps the header's spelling (int64) in its cType. The dispatcher serves 3650 functions. Each set, span, span set and temporal value writes its text through set_out, span_out, spanset_out and temporal_out, which the table states, and the per-type writers intset_out, tstzspan_out, tint_out, tfloat_out, tspatial_out and their siblings are not in it.
Why. MobilityDB master has one text writer per template, so its catalog states none of the 40 per-type writers the table served; with them, 43 other functions are gone from the catalog (the trgeometry_* restrictions and accessors, tpoint_at_geom, th3index_make, ...) and 16 geometry primitives (geom_area, geog_length, geom_dwithin2d, ...) are no longer exposable. The generated-table job of python.yml, which regenerates the table from the catalog of master and refuses a difference, fails on the table it replaces, and a dispatch of 79 of those 99 names reaches a function the libmeos of master does not export.
Witness. Against the table it replaces, 99 functions leave and 99 arrive (set_out, span_out, spanset_out, temporal_out, the ever and always overlaps of a box and a temporal value, those of a temporal point cloud and a point cloud box, the casts of a spatial value to geography, ...); two runs of the generator write the same file. The libmeos of MobilityDB master 0bc5f54084 with every family exports temporal_out and not tfloat_out. Every offline test passes: 66 tests, none skipped (test_app, test_bulk, test_codegen, test_dispatcher, test_movfeat, test_resolvers, test_wire).