Skip to content

Commit d6a136c

Browse files
committed
[sidecar] Fix failing lambda test case in TestNativeSidecarPlugin
1 parent be655be commit d6a136c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

presto-native-sidecar-plugin/src/test/java/com/facebook/presto/sidecar/TestNativeSidecarPlugin.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public void testLambdaFunctions()
204204
assertQuery("SELECT transform(array[1, 2, 3], x -> x * regionkey + nationkey) FROM nation");
205205
assertQueryFails(
206206
"SELECT array_sort(quantities, (x, y, z) -> if (x < y + z, cast(1 as bigint), if (x > y + z, cast(-1 as bigint), cast(0 as bigint)))) FROM orders_ex",
207-
Pattern.quote("Failed to find matching function signature for array_sort, matching failures: \n" +
208-
" Exception 1: line 1:31: Expected a lambda that takes 1 argument(s) but got 3\n" +
209-
" Exception 2: line 1:31: Expected a lambda that takes 2 argument(s) but got 3\n"));
207+
"Failed to find matching function signature for array_sort, matching failures: \n" +
208+
" Exception 1: line 1:31: Expected a lambda that takes ([12])" + Pattern.quote(" argument(s) but got 3\n") +
209+
" Exception 2: line 1:31: Expected a lambda that takes ([12])" + Pattern.quote(" argument(s) but got 3\n"));
210210
}
211211

212212
@Test

0 commit comments

Comments
 (0)