From 78375d2dcfcfd3d53d2a835231df22f0a66f126a Mon Sep 17 00:00:00 2001 From: Esteban Zimanyi Date: Sat, 17 Oct 2026 19:48:06 +0200 Subject: [PATCH] Build the span set of the array test from increasing spans The test reading an array of fixed-size values as the contiguous C array MEOS takes builds its span set from `[1, 3)` and `[5, 7)` in that order, and answers `{[1, 3), [5, 7)}`. A span set holds its spans increasing, and the public constructor refuses them in any other order, as the SQL constructor does. Witness: with MobilityDB master `87c5269563` (whose #3073 makes the public constructors answer what the SQL constructors answer) the test, building the set from `[5, 7)` then `[1, 3)`, fails `GeneratedSqlSurfaceTest.arraysCrossAsFlinkArrays` with "The spans composing a span set must be increasing: [5, 7), [1, 3)". Measured: the JMEOS receipt building and testing MobilityFlink at this branch over MobilityDB `87c5269563` and MEOS-API `068f4bf353` runs the suite with no failure. --- .../java/org/mobilitydb/flink/sql/GeneratedSqlSurfaceTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binding/src/test/java/org/mobilitydb/flink/sql/GeneratedSqlSurfaceTest.java b/binding/src/test/java/org/mobilitydb/flink/sql/GeneratedSqlSurfaceTest.java index 0d91546..02a7602 100644 --- a/binding/src/test/java/org/mobilitydb/flink/sql/GeneratedSqlSurfaceTest.java +++ b/binding/src/test/java/org/mobilitydb/flink/sql/GeneratedSqlSurfaceTest.java @@ -214,7 +214,7 @@ void arraysCrossAsFlinkArrays() throws Exception { () -> scalar("SELECT intset_out(setMake(ARRAY[1, CAST(NULL AS INT)]))")); // An array of fixed-size values reaches MEOS as the contiguous C array it reads assertEquals("{[1, 3), [5, 7)}", scalar("SELECT intspanset_out(spanset(ARRAY[" - + "intspan_in('[5, 7)'), intspan_in('[1, 3)')]))")); + + "intspan_in('[1, 3)'), intspan_in('[5, 7)')]))")); assertEquals(2, scalar("SELECT numValues(setMake(ARRAY[npoint_in('NPoint(1, 0.5)'), " + "npoint_in('NPoint(2, 0.3)'), npoint_in('NPoint(1, 0.5)')]))")); assertEquals(2, scalar("SELECT numValues(setMake(ARRAY[cbuffer_in('Cbuffer(Point(1 1), 0.5)'), "