github-advanced-security[bot] commented on code in PR #18087:
URL: https://github.com/apache/druid/pull/18087#discussion_r2144904926
##########
services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java:
##########
@@ -837,8 +858,8 @@
if (isJDBC) {
sqlQueryId =
response.getHeaders().get(SqlResource.SQL_QUERY_ID_RESPONSE_HEADER);
} else if (sqlQuery != null) {
- sqlQueryId = (String)
sqlQuery.getContext().getOrDefault(BaseQuery.SQL_QUERY_ID, null);
- queryId = (String)
sqlQuery.getContext().getOrDefault(BaseQuery.QUERY_ID, null);
+ sqlQueryId = (String)
sqlQuery.getContext().getOrDefault(QueryContexts.SQL_QUERY_ID, null);
+ queryId = (String)
sqlQuery.getContext().getOrDefault(QueryContexts.QUERY_ID, null);
Review Comment:
## Type mismatch on container access
Actual argument type 'SettingEntry<String>' is incompatible with expected
argument type 'String'.
[Show more
details](https://github.com/apache/druid/security/code-scanning/9235)
##########
services/src/main/java/org/apache/druid/server/AsyncQueryForwardingServlet.java:
##########
@@ -837,8 +858,8 @@
if (isJDBC) {
sqlQueryId =
response.getHeaders().get(SqlResource.SQL_QUERY_ID_RESPONSE_HEADER);
} else if (sqlQuery != null) {
- sqlQueryId = (String)
sqlQuery.getContext().getOrDefault(BaseQuery.SQL_QUERY_ID, null);
- queryId = (String)
sqlQuery.getContext().getOrDefault(BaseQuery.QUERY_ID, null);
+ sqlQueryId = (String)
sqlQuery.getContext().getOrDefault(QueryContexts.SQL_QUERY_ID, null);
Review Comment:
## Type mismatch on container access
Actual argument type 'SettingEntry<String>' is incompatible with expected
argument type 'String'.
[Show more
details](https://github.com/apache/druid/security/code-scanning/9234)
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]