alex-plekhanov commented on code in PR #12550:
URL: https://github.com/apache/ignite/pull/12550#discussion_r2583879187


##########
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:
   It will make code more complex, prefer to leave it as is.



-- 
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]

Reply via email to