Skip to content

Test the temporal aggregates of the typed Spark SQL surface - #67

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/sql-surface-temporal-aggregates
Oct 4, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/sql-surface-temporal-aggregates

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest answers the seven temporal aggregates of the typed
surface, mergeAgg, tAndAgg, tCount, tMaxAgg, tMinAgg, tOrAgg and tSum, over the
values of GeneratedSurfaceTest, each in a partition of its own so that the
combine joins the partial states the shuffle carries, and asserts the texts
MobilityDB answers for them, with every instant stated in UTC. It asserts
that tCount over a tint answers a tint whose maxValue is an int, and that
maxValue(tCount(g)) over the per-trip mergeAgg of three pieces of two
trajectories counts the trips, not the pieces: 2 for both, 1 for one.

Witness: with the codegen_jvm.py of JMEOS main the typed surface registers no
aggregate, and both tests fail to resolve tCount.

Measured: generated with the codegen_jvm.py of JMEOS #140 against MobilityDB
d9b9c11985, the suite passes, 33 tests.

GeneratedSqlSurfaceTest answers the seven temporal aggregates of the typed
surface, mergeAgg, tAndAgg, tCount, tMaxAgg, tMinAgg, tOrAgg and tSum, over the
values of GeneratedSurfaceTest, each in a partition of its own so that the
combine joins the partial states the shuffle carries, and asserts the texts
MobilityDB answers for them, with every instant stated in UTC. It asserts
that tCount over a tint answers a tint whose maxValue is an int, and that
maxValue(tCount(g)) over the per-trip mergeAgg of three pieces of two
trajectories counts the trips, not the pieces: 2 for both, 1 for one.

Witness: with the codegen_jvm.py of JMEOS main the typed surface registers no
aggregate, and both tests fail to resolve tCount.

Measured: generated with the codegen_jvm.py of JMEOS #140 against MobilityDB
d9b9c11985, the suite passes, 33 tests.
@estebanzimanyi
estebanzimanyi merged commit 72dfdf7 into MobilityDB:main Oct 4, 2026
2 checks passed
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