oleg-vlsk commented on code in PR #12550:
URL: https://github.com/apache/ignite/pull/12550#discussion_r2583647776
##########
modules/indexing/src/test/java/org/apache/ignite/client/FunctionalQueryTest.java:
##########
@@ -317,6 +317,30 @@ public void testEmptyQuery() {
}
}
+ /** Tests {@link SqlFieldsQuery} initiator ID parameter. */
+ @Test
+ public void testQueryInitiatorId() throws Exception {
Review Comment:
Redundant exception?
##########
modules/indexing/src/test/java/org/apache/ignite/client/FunctionalQueryTest.java:
##########
@@ -317,6 +317,30 @@ public void testEmptyQuery() {
}
}
+ /** Tests {@link SqlFieldsQuery} initiator ID parameter. */
+ @Test
+ public void testQueryInitiatorId() throws Exception {
+ try (Ignite ignored = Ignition.start(Config.getServerConfiguration());
+ IgniteClient client = Ignition.startClient(new
ClientConfiguration().setAddresses(Config.SERVER))
+ ) {
+ String initiatorId = "test";
+
+ SqlFieldsQuery qry = new SqlFieldsQuery("SELECT INITIATOR_ID FROM
SYS.SQL_QUERIES").setQueryInitiatorId(initiatorId);
+
+ List<List<?>> res = client.query(qry).getAll();
Review Comment:
Maybe it's better get rid of code duplication by using something like:
```
Consumer<List<List<?>>> checker = res -> {
assertEquals(1, res.size());
assertEquals(initiatorId, res.get(0).get(0));
};
```
And then:
`checker.accept(...)`
--
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]