Skip to content

Check the aggregates of every state the catalog states on the typed surface - #76

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/catalog-aggregates
Oct 10, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/catalog-aggregates

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest.aggregatesAnswerWhatMobilityDBAnswers checks that tCount, tAvg and
tCentroid, whose skip lists carry counts, sums and coordinates, setUnionAgg and spanUnionAgg,
whose states are a set and a span set, and extent over boxes, whose state is a box, answer what
MobilityDB answers, in a streaming job folding each value into the bytes of the state and in a
batch job of two phases; and that tAvg joins two partial states, one read back from the bytes
the accumulator's serializer writes for an exchange. GENERATION.md states how the surface
carries an aggregate.

Witness: with the generator of JMEOS main the test does not compile, the surface holding no
class TAvg, and the twin test of MobilitySpark fails on "Cannot resolve routine tAvg".

Measured over MobilityDB bdc4e41234, the catalog of MEOS-API d259ddbfea and the generator of
JMEOS codegen/catalog-aggregates: the binding module passes its 24 tests and the benchmark
module its 12, and the build prints no warning.

Why: an aggregate answers on Flink as it does in PostgreSQL, whatever state it keeps.

…urface

GeneratedSqlSurfaceTest.aggregatesAnswerWhatMobilityDBAnswers checks that tCount, tAvg and
tCentroid, whose skip lists carry counts, sums and coordinates, setUnionAgg and spanUnionAgg,
whose states are a set and a span set, and extent over boxes, whose state is a box, answer what
MobilityDB answers, in a streaming job folding each value into the bytes of the state and in a
batch job of two phases; and that tAvg joins two partial states, one read back from the bytes
the accumulator's serializer writes for an exchange. GENERATION.md states how the surface
carries an aggregate.

Witness: with the generator of JMEOS main the test does not compile, the surface holding no
class TAvg, and the twin test of MobilitySpark fails on "Cannot resolve routine `tAvg`".

Measured over MobilityDB bdc4e41234, the catalog of MEOS-API d259ddbfea and the generator of
JMEOS codegen/catalog-aggregates: the binding module passes its 24 tests and the benchmark
module its 12, and the build prints no warning.

Why: an aggregate answers on Flink as it does in PostgreSQL, whatever state it keeps.
@estebanzimanyi
estebanzimanyi merged commit 49f2c1c into MobilityDB:main Oct 10, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/catalog-aggregates branch October 10, 2026 12:12
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