Skip to content

Check the call that leaves an argument to its NULL default on the typed surface - #75

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/null-default-arities
Oct 10, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/null-default-arities

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

GeneratedSqlSurfaceTest.anArgumentLeftToItsNullDefaultIsWhatTheWrapperPasses checks that
tintSeqSetGaps over three instants with a gap of three days answers 2 sequences with a one-day
maxt and no maxdist, the wrapper passing -1.0, and 1 with neither, the wrapper passing a NULL
maxt; and that tfloatSeq of an instant without an interpolation answers a sequence, the wrapper
passing INTERP_NONE.

Witness: with the generator of JMEOS main the surface registers no call of tintSeqSetGaps
without its NULL-default arguments, as MobilitySpark measures on the twin test, which fails
there on "function tintSeqSetGaps(array, interval day) does not exist".

Measured over MobilityDB 647acbe4ed, the catalog of MEOS-API catalog/null-default-binds and the
generator of JMEOS codegen/null-default-arities: the binding module passes its 23 tests and the
benchmark module its 12, and the build prints no warning.

Why: a call leaving an argument to its default answers on Flink as it does in PostgreSQL.

…ed surface

GeneratedSqlSurfaceTest.anArgumentLeftToItsNullDefaultIsWhatTheWrapperPasses checks that
tintSeqSetGaps over three instants with a gap of three days answers 2 sequences with a one-day
maxt and no maxdist, the wrapper passing -1.0, and 1 with neither, the wrapper passing a NULL
maxt; and that tfloatSeq of an instant without an interpolation answers a sequence, the wrapper
passing INTERP_NONE.

Witness: with the generator of JMEOS main the surface registers no call of tintSeqSetGaps
without its NULL-default arguments, as MobilitySpark measures on the twin test, which fails
there on "function tintSeqSetGaps(array<tint>, interval day) does not exist".

Measured over MobilityDB 647acbe4ed, the catalog of MEOS-API catalog/null-default-binds and the
generator of JMEOS codegen/null-default-arities: the binding module passes its 23 tests and the
benchmark module its 12, and the build prints no warning.

Why: a call leaving an argument to its default answers on Flink as it does in PostgreSQL.
@estebanzimanyi
estebanzimanyi merged commit 62c68ae into MobilityDB:main Oct 10, 2026
2 checks passed
@estebanzimanyi
estebanzimanyi deleted the test/null-default-arities branch October 10, 2026 07:01
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