Skip to content

Read in step the arrays a call counts once - #41

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:feat/parallel-arrays-reach-the-layer
Sep 3, 2026
Merged

Read in step the arrays a call counts once#41
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:feat/parallel-arrays-reach-the-layer

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

The catalog states the one length that counts several arrays, so a method
taking them takes the length from the first and states that the rest agree.
Jsonb.MakeTwoArg(Text[] keys, Text[] values) pairs its two element by
element off one count, and a shorter array is read past the end of — MEOS holds
only the count it is given, so nothing on that side can see it happen.

The layer emits 1355 methods over 115 classes with 6 deferred, and Geometry
answers the area of a geometry. Its own test builds {"a": "one", "b": "two"}
from a pair of two-element arrays and takes an ArgumentException for a pair of
three and two.

The catalog states the one length that counts several arrays, so a method
taking them takes the length from the first and states that the rest agree.
`Jsonb.MakeTwoArg(Text[] keys, Text[] values)` pairs its two element by
element off one count, and a shorter array is read past the end of — MEOS holds
only the count it is given, so nothing on that side can see it happen.

The layer emits 1355 methods over 115 classes with 6 deferred, and `Geometry`
answers the area of a geometry. Its own test builds `{"a": "one", "b": "two"}`
from a pair of two-element arrays and takes an `ArgumentException` for a pair of
three and two.
@estebanzimanyi
estebanzimanyi merged commit d604dbb into MobilityDB:main Sep 3, 2026
1 check passed
@estebanzimanyi
estebanzimanyi deleted the feat/parallel-arrays-reach-the-layer branch September 3, 2026 17:13
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