Skip to content

Test a number widened past the UDF surface's function of the same name - #66

Merged
estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/sql-surface-widens-past-the-udf-surface
Oct 4, 2026
Merged

estebanzimanyi merged 1 commit into
MobilityDB:mainfrom
estebanzimanyi:test/sql-surface-widens-past-the-udf-surface

Conversation

@estebanzimanyi

Copy link
Copy Markdown
Member

SqlSurfaceOverUdfSurfaceTest registers GeneratedSpatioTemporalUDFs and then
MobilitySparkSql in one session, as a query reading values in both forms
registers them, and asserts that eDwithin over two tgeompoint values with the
integer distance 10 reaches the typed overload taking a double distance and
answers true, as it does with 10.0.

Witness: with the codegen_jvm.py of JMEOS main the call goes to the UDF that
GeneratedSpatioTemporalUDFs registers under the same name, which raises a
ClassCastException, Integer to Double.

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

SqlSurfaceOverUdfSurfaceTest registers GeneratedSpatioTemporalUDFs and then
MobilitySparkSql in one session, as a query reading values in both forms
registers them, and asserts that eDwithin over two tgeompoint values with the
integer distance 10 reaches the typed overload taking a double distance and
answers true, as it does with 10.0.

Witness: with the codegen_jvm.py of JMEOS main the call goes to the UDF that
GeneratedSpatioTemporalUDFs registers under the same name, which raises a
ClassCastException, Integer to Double.

Measured: generated with the codegen_jvm.py of JMEOS #139 against MobilityDB
d9b9c11985, the suite passes, 32 tests.
@estebanzimanyi
estebanzimanyi merged commit 74ca0bb 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