rdblue commented on a change in pull request #750: Add time-travel methods 
(asOfTime,useSnapshot) in IcebergGenerics
URL: https://github.com/apache/incubator-iceberg/pull/750#discussion_r371373886
 
 

 ##########
 File path: data/src/main/java/org/apache/iceberg/data/IcebergGenerics.java
 ##########
 @@ -56,27 +61,33 @@ public ScanBuilder reuseContainers() {
     }
 
     public ScanBuilder where(Expression rowFilter) {
-      this.where = Expressions.and(where, rowFilter);
+      this.tableScan = this.tableScan.filter(Expressions.and(defaultWhere, 
rowFilter));
 
 Review comment:
   The `TableScan` API is a refinement API, like Spark's data frames. When you 
filter, you get a new scan that has the new filter applied with the existing 
scan's filters. So there's no need to use `Expressions.and`. In fact, using 
`and` with `true` and another filter will just return the filter.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to