cecemei commented on code in PR #17774:
URL: https://github.com/apache/druid/pull/17774#discussion_r2025421720


##########
processing/src/main/java/org/apache/druid/query/DataSource.java:
##########
@@ -140,6 +141,16 @@ default DataSource withPolicies(Map<String, 
Optional<Policy>> policyMap)
     return this.withChildren(children);
   }
 
+  /**
+   * Returns true if the datasource complies with the policy restrictions on 
tables.
+   */
+  default boolean validate(PolicyEnforcer policyEnforcer)

Review Comment:
   actually updated walkers to use query.datasource().validate(enforcer). this 
should handle UnionDS UnnestDS as well. 



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