Vladsz83 commented on code in PR #13668:
URL: https://github.com/apache/ignite/pull/13668#discussion_r4237895855
##########
modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java:
##########
@@ -1019,6 +1026,23 @@ public boolean moduleEnabled() {
return indexingEnabled() || dfltQryEngine != null;
}
+ /**
+ * @param engineName Query engine name.
+ * @return {@code True} if a query engine with the given name can be
selected by the {@code QUERY_ENGINE} hint or
+ * by the client connection property.
+ */
+ public boolean queryEngineConfigured(String engineName) {
+ if (qryEnginesCfg == null)
+ return false;
+
+ for (QueryEngineConfigurationEx cfg : qryEnginesCfg) {
Review Comment:
Also suggestion, change to smth. like:
`return qryEnginesCfg != null && Arrays.stream(qryEnginesCfg).anyMatch(qCfg
-> qCfg.engineName().equalsIgnoreCase(engineName));`
--
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]