FrankChen021 commented on code in PR #17937:
URL: https://github.com/apache/druid/pull/17937#discussion_r2069909119


##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/sql/resources/SqlStatementResource.java:
##########
@@ -167,8 +167,14 @@ public Response isEnabled(@Context final 
HttpServletRequest request)
 
   @POST
   @Produces(MediaType.APPLICATION_JSON)
-  @Consumes(MediaType.APPLICATION_JSON)
-  public Response doPost(final SqlQuery sqlQuery, @Context final 
HttpServletRequest req)
+  public Response doPost(@Context final HttpServletRequest req,
+                         @Context final HttpContext httpContext)
+  {
+    return doPost(SqlQuery.from(httpContext), req);
+  }
+
+  public Response doPost(SqlQuery sqlQuery,

Review Comment:
   no, because this method is called by test cases, we can change the 
visibility to package level



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

Reply via email to