cecemei commented on code in PR #17774:
URL: https://github.com/apache/druid/pull/17774#discussion_r2040135955
##########
processing/src/main/java/org/apache/druid/segment/SegmentReference.java:
##########
@@ -27,4 +29,15 @@
*/
public interface SegmentReference extends Segment, ReferenceCountedObject
{
+
+ /**
+ * Returns true if the segment complies with the policy restrictions on
tables.
+ * <p>
+ * This should be called right before the segment is about to be processed
by the query stack.
+ */
+ default boolean validate(PolicyEnforcer policyEnforcer)
Review Comment:
Updated this:
- On the runner/processor, enforcer would check on the mapped segment, this
is in `ExecutionVertex.createSegmentMapFunction`
- Prior to execution on date node, the enforcer works in `QueryLifecycle`
and `DruidQuery`, through `withPolicies`.
The exception is also centralized in `PolicyEnforcer`.
--
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]