Skip to content

Check the aggregates over a base value on the typed Spark surface - #81

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/base-value-aggregates
Oct 12, 2026
Merged

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

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest.baseValueAggregatesAnswerWhatMobilityDBAnswers checks that setUnionAgg
over integers, bigints, floats, texts, dates and timestamps, extent over integers, bigints,
floats, dates and timestamps, and tCount over timestamps answer what MobilityDB answers over the
same values with the time zone set to UTC, each value in a partition of its own, so the combine
joins the partial states: {1, 2, 3} for the integers 3, 1, 2 and 1, [1, 4) for their extent,
{1@2001-01-01 00:00:00+00, 2@2001-01-02 00:00:00+00} for the count of three timestamps two of
which are equal.

Witness: with the generator of JMEOS main e8c65dc4 the surface registers none of the 12, and the
test fails with "aggregate setUnionAgg(int) does not exist".

Measured over MobilityDB b2dcdf7d84, the catalog of MEOS-API 9b337a00fe and JMEOS main 67294a87,
which carries #176: the 46 tests pass, 18 of them in
GeneratedSqlSurfaceTest, with 0 warnings.

Why: a set, a span or a count over the integers, dates or timestamps of a table answers on Spark
as it does in PostgreSQL.

GeneratedSqlSurfaceTest.baseValueAggregatesAnswerWhatMobilityDBAnswers checks that setUnionAgg
over integers, bigints, floats, texts, dates and timestamps, extent over integers, bigints,
floats, dates and timestamps, and tCount over timestamps answer what MobilityDB answers over the
same values with the time zone set to UTC, each value in a partition of its own, so the combine
joins the partial states: {1, 2, 3} for the integers 3, 1, 2 and 1, [1, 4) for their extent,
{1@2001-01-01 00:00:00+00, 2@2001-01-02 00:00:00+00} for the count of three timestamps two of
which are equal.

Witness: with the generator of JMEOS main e8c65dc4 the surface registers none of the 12, and the
test fails with "aggregate setUnionAgg(int) does not exist".

Measured over MobilityDB b2dcdf7d84, the catalog of MEOS-API 9b337a00fe and JMEOS main 67294a87,
which carries #176: the 46 tests pass, 18 of them in
GeneratedSqlSurfaceTest, with 0 warnings.

Why: a set, a span or a count over the integers, dates or timestamps of a table answers on Spark
as it does in PostgreSQL.
@estebanzimanyi
estebanzimanyi merged commit aa6dc5b into MobilityDB:main Oct 12, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/base-value-aggregates branch October 12, 2026 10:57
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