Skip to content

Record the EWKB writers of the spatial types in the Spark gaps ledger - #159

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:codegen/spark-gaps-ledger-ewkb-writers
Oct 5, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:codegen/spark-gaps-ledger-ewkb-writers

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

tools/spark-udf-gaps.txt lists the 11 public MEOS EWKB writers the Spark UDF surface does not
reach: cbuffer_as_ewkb, npoint_as_ewkb, nsegment_as_ewkb, pose_as_ewkb, posechain_as_ewkb,
spatialset_as_ewkb, stbox_as_ewkb, tpcbox_as_ewkb and tspatial_as_ewkb, which return their bytes
through a size_t * out-parameter as a uint8_t *, and posechain_as_hexewkb and tpcbox_as_hexewkb,
which take that out-parameter, as the ledger lists posechain_as_wkb, posechain_as_hexwkb,
tpcbox_as_wkb and tpcbox_as_hexwkb. The plain writers of the other types are reached as the byte
codec of their value type, which the E writers are not.

Witness: over the catalog and libmeos of MobilityDB 34247bccf3 and MEOS-API 0438baabc6,
codegen_jvm.py --engine spark --gaps tools/spark-udf-gaps.txt on main exits 1, "11 public
functions the surface does not reach and the ledger does not list", naming these 11.

Measured over the same pair: --rebaseline adds these 11 lines and changes no other; the check
passes, the ledger at 762 functions.

tools/spark-udf-gaps.txt lists the 11 public MEOS EWKB writers the Spark UDF surface does not
reach: cbuffer_as_ewkb, npoint_as_ewkb, nsegment_as_ewkb, pose_as_ewkb, posechain_as_ewkb,
spatialset_as_ewkb, stbox_as_ewkb, tpcbox_as_ewkb and tspatial_as_ewkb, which return their bytes
through a size_t * out-parameter as a uint8_t *, and posechain_as_hexewkb and tpcbox_as_hexewkb,
which take that out-parameter, as the ledger lists posechain_as_wkb, posechain_as_hexwkb,
tpcbox_as_wkb and tpcbox_as_hexwkb. The plain writers of the other types are reached as the byte
codec of their value type, which the E writers are not.

Witness: over the catalog and libmeos of MobilityDB 34247bccf3 and MEOS-API 0438baabc6,
codegen_jvm.py --engine spark --gaps tools/spark-udf-gaps.txt on main exits 1, "11 public
functions the surface does not reach and the ledger does not list", naming these 11.

Measured over the same pair: --rebaseline adds these 11 lines and changes no other; the check
passes, the ledger at 762 functions.
@estebanzimanyi
estebanzimanyi merged commit ddc73f2 into MobilityDB:main Oct 5, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the codegen/spark-gaps-ledger-ewkb-writers branch October 5, 2026 18:30
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