Skip to content

Add the per-binding generator policy and catalog-driven regen#29

Closed
estebanzimanyi wants to merge 6 commits into
MobilityDB:mainfrom
estebanzimanyi:tooling/canonical-generator-policy
Closed

Add the per-binding generator policy and catalog-driven regen#29
estebanzimanyi wants to merge 6 commits into
MobilityDB:mainfrom
estebanzimanyi:tooling/canonical-generator-policy

Conversation

@estebanzimanyi

@estebanzimanyi estebanzimanyi commented Jun 25, 2026

Copy link
Copy Markdown
Member

@/home/esteban/wt-jmeos-policy/.body2.md

@estebanzimanyi estebanzimanyi force-pushed the tooling/canonical-generator-policy branch 2 times, most recently from 0966857 to 7713085 Compare June 25, 2026 21:41
… surface

Bump codegen/input/meos-idl.json to the MEOS-API IDL and regenerate
functions.GeneratedFunctions over the full consolidated superset: mul_* (incl.
tbigint); minDistance; the circular-buffer and network-point MF-JSON readers; the
ever- and always-covers families (ecovers_*/acovers_*); trgeo_*; the H3 /
th3index family (ever_eq_h3indexset_th3index, h3index_in/out, H3Index lowered to
long); PostgreSQL type I/O; tgeogpoint_great_circle_distance;
meos_initialize_noexit_error_handler. 2916 functions.
Add the codegen exec step to jmeos-core so functions/GeneratedFunctions.java is
produced from codegen/input/meos-idl.json during the build, and drop the
committed copy.
Run meos_initialize() from the binding's load path so the allocator and
collation are installed before any call. MEOS splits startup into granular
steps; without the collation step, text comparisons route into varstr_cmp with
an uninitialized collation and crash.
Call the generated functions class from TText and TextSet instead of the
hand-maintained facade, so the text conversions use the canonical master names
(cstring_to_text, text_to_cstring).
@estebanzimanyi estebanzimanyi force-pushed the tooling/canonical-generator-policy branch from 7713085 to 785e2f2 Compare July 2, 2026 12:39
@estebanzimanyi estebanzimanyi changed the title Add the JMEOS pin manifest and per-binding generator policy Add the per-binding generator policy and catalog-driven regen Jul 2, 2026
Document that JMEOS is the JVM raw-FFI projection of the MEOS-API catalog (derived from
MobilityDB master): FunctionsGenerator emits GeneratedFunctions plus the OO type layer,
with no hand-written facade. The MeosOps facades and the Spark-Connect registrar are
consumer projections that each JVM binding (Flink/Kafka/Spark) generates from the same
catalog. tools/regen-from-catalog.sh vendors the catalog and builds the jar the consumers
bind.
@estebanzimanyi estebanzimanyi force-pushed the tooling/canonical-generator-policy branch from 785e2f2 to 9cfb57d Compare July 2, 2026 12:51
@estebanzimanyi

Copy link
Copy Markdown
Member Author

The generator policy doc (codegen/GENERATION.md) and catalog-driven regen (tools/regen-from-catalog.sh) are in #30, on the current master surface. Closing as folded into the canonical surface.

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