xiaojunjie commented on code in PR #13879:
URL: https://github.com/apache/doris/pull/13879#discussion_r1016362444


##########
fe/fe-core/src/main/java/org/apache/doris/nereids/analyzer/UnboundRelation.java:
##########
@@ -43,33 +43,41 @@
 public class UnboundRelation extends LogicalLeaf implements Relation, Unbound {
     private final List<String> nameParts;
 
+    private boolean policyChecked;
+
     public UnboundRelation(List<String> nameParts) {
-        this(nameParts, Optional.empty(), Optional.empty());
+        this(nameParts, false);
+    }
+
+    public UnboundRelation(List<String> nameParts, boolean policyChecked) {
+        this(nameParts, policyChecked, Optional.empty(), Optional.empty());
     }

Review Comment:
   So good an idea. I image that the sql of filter is obtained from 
wherePredicate.toSql() in RowPolicy. But I have difficulty in parsing it, such 
as "**k[#1] = 1**", due to function toSqlImpl of SlotRef。So I have to use 
NereidsParser to generate an additional expression of filter when creating a 
policy. Any good idea?
   



-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to