kfaraz commented on code in PR #17899:
URL: https://github.com/apache/druid/pull/17899#discussion_r2051912653
##########
server/src/main/java/org/apache/druid/server/BrokerQueryResource.java:
##########
@@ -89,19 +97,22 @@ public Response getQueryTargets(
InputStream in,
@QueryParam("pretty") String pretty,
@QueryParam("numCandidates") @DefaultValue("-1") int numCandidates,
+ @QueryParam("cloneQueryMode") @Nullable CloneQueryMode cloneQueryMode,
@Context final HttpServletRequest req
) throws IOException
{
final ResourceIOReaderWriter ioReaderWriter =
createResourceIOReaderWriter(req, pretty != null);
try {
Query<?> query = ioReaderWriter.getRequestMapper().readValue(in,
Query.class);
ExecutionVertex ev = ExecutionVertex.of(query);
+ HistoricalFilter historicalFilter = new HistoricalFilter(configView,
cloneQueryMode == null ? QueryContexts.DEFAULT_CLONE_QUERY_MODE :
cloneQueryMode);
Review Comment:
Use `QueryContexts.getAsEnum()` here to get the enum from the String (once
the arg is updated).
--
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]