Skip to content

Call the MEOS functions whose name Spark owns by their class-prefixed name - #79

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/class-prefixed-names
Oct 11, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/class-prefixed-names

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

Spark owns lower, round, transform, set and unnest, so the generated surfaces register the MEOS
functions under the name the catalog states for Spark and Flink (altSqlName): spanLower for
lower(floatspan), setMake for set(integer[]), setUnnest for unnest(intset), temporalUnnest for
unnest(tint), geoTransform for transform(tgeompoint, integer). The SQL surface test calls them by
these names and checks that lower('ABC'), round(2.5) and transform(array(1, 2), x -> x * 2) answer
as Spark's own functions, while lower over a floatspan is not a MEOS function in Spark.

The test also states two queries of the flights dashboards: a temporal point transformed to
ETRS89-LAEA (SRID 3035) keeps its instants and takes the new SRID, and stboxOverlaps, the
function of && between a temporal point and the box expandSpace gives another, answers true
for a box widened past the distance between the two trips and false for one short of it.

… name

Spark owns lower, round, transform, set and unnest, so the generated surfaces register the MEOS
functions under the name the catalog states for Spark and Flink (altSqlName): spanLower for
lower(floatspan), setMake for set(integer[]), setUnnest for unnest(intset), temporalUnnest for
unnest(tint), geoTransform for transform(tgeompoint, integer). The SQL surface test calls them by
these names and checks that lower('ABC'), round(2.5) and transform(array(1, 2), x -> x * 2) answer
as Spark's own functions, while lower over a floatspan is not a MEOS function in Spark.

The test also states two queries of the flights dashboards: a temporal point transformed to
ETRS89-LAEA (SRID 3035) keeps its instants and takes the new SRID, and stboxOverlaps, the
function of && between a temporal point and the box expandSpace gives another, answers true
for a box widened past the distance between the two trips and false for one short of it.
@estebanzimanyi
estebanzimanyi merged commit 16c605a into MobilityDB:main Oct 11, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/class-prefixed-names branch October 11, 2026 07:54
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