kfaraz commented on code in PR #17846:
URL: https://github.com/apache/druid/pull/17846#discussion_r2019700096
##########
extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/exec/SegmentLoadStatusFetcher.java:
##########
@@ -238,13 +236,11 @@ private void updateStatus(State state, DateTime startTime)
*/
private VersionLoadStatus fetchLoadStatusFromBroker() throws Exception
{
- Request request = brokerClient.makeRequest(HttpMethod.POST,
"/druid/v2/sql/");
SqlQuery sqlQuery = new SqlQuery(StringUtils.format(LOAD_QUERY,
datasource, versionsConditionString),
ResultFormat.OBJECTLINES,
false, false, false, null, null
);
- request.setContent(MediaType.APPLICATION_JSON,
objectMapper.writeValueAsBytes(sqlQuery));
- String response = brokerClient.sendQuery(request);
+ String response = brokerClient.submit(sqlQuery);
Review Comment:
I don't think `BrokerClient` has any `submit()` method which returns a
String response.
--
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]