clintropolis commented on code in PR #20562:
URL: https://github.com/apache/druid/pull/20562#discussion_r4265054004


##########
processing/src/main/java/org/apache/druid/query/QueryContext.java:
##########
@@ -997,4 +998,18 @@ public RealtimeSegmentsMode getRealtimeSegmentsMode()
     }
     return QueryContexts.DEFAULT_REALTIME_SEGMENTS_MODE;
   }
+
+  /**
+   * Returns the {@link AcquireMode} set by {@link 
QueryContexts#SEGMENT_ACQUIRE_MODE}, or {@code defaultValue} (the
+   * engine's own choice) if absent. Currently only honored by MSQ leaf stage 
processors.
+   * <p>
+   * {@link AcquireMode#PARTIAL} degrades to {@link AcquireMode#FULL} where 
partial downloads are unavailable, such as
+   * when they are disabled by configuration or the segment is not 
range-readable. Forcing {@link AcquireMode#PARTIAL}
+   * where the engine defaults to {@link AcquireMode#FULL} fails at cursor 
creation if the engine reads segments through
+   * the synchronous cursor API.

Review Comment:
   it wouldn't really be obvious it was because a context parameter was 
explicitly set, and what error I think would depend on what triggered it. There 
are currently no BaseLeafFrameProcessor that can explode, and the native engine 
ignores this parameter.
   
   If we ever expose this to actual users it might be worth making something 
nicer (though not sure what yet), but I think its ok for now since this is 
mainly for dev use.



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