lowka commented on code in PR #5203:
URL: https://github.com/apache/ignite-3/pull/5203#discussion_r1951140488
##########
modules/compute/src/integrationTest/java/org/apache/ignite/internal/compute/ItComputeBaseTest.java:
##########
@@ -448,6 +460,43 @@ void
executeColocatedThrowsTableNotFoundExceptionWhenTableDoesNotExist() {
assertThat(ex.getCause().getMessage(), containsString("The table does
not exist [name=PUBLIC.BAD_TABLE]"));
}
+ @ParameterizedTest
+ @ValueSource(strings = "WRONG_SCHEMA")
+ void
submitColocatedThrowsTableNotFoundExceptionWhenSchemaDoesNotExist(String
schemaName) {
+ sql("DROP SCHEMA IF EXISTS " + schemaName);
+
+ var ex = assertThrows(CompletionException.class,
+ () -> compute().submitAsync(
+ JobTarget.colocated("Wrong_Schema.test",
Tuple.create(Map.of("k", 1))),
+
JobDescriptor.builder(getNodeNameJobClass()).units(units()).build(),
+ null
+ ).join()
+ );
+
+ assertInstanceOf(TableNotFoundException.class, ex.getCause());
+
+ String errorMessage = format("The table does not exist [name={}]",
QualifiedName.of(schemaName, "TEST").toCanonicalForm());
+ assertThat(ex.getCause().getMessage(), containsString(errorMessage));
+ }
+
+ @ParameterizedTest
+ @ValueSource(strings = "WRONG_SCHEMA")
Review Comment:
This one should also include PUBLIC schema.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]