PHOENIX-4496 Fix RowValueConstructorIT and IndexMetadataIT
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/f71654a5 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/f71654a5 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/f71654a5 Branch: refs/heads/4.x-cdh5.14 Commit: f71654a5c68e403d6c9c9fd3d535ee9cfc1b73f7 Parents: 8eaca12 Author: Ankit Singhal <ankitsingha...@gmail.com> Authored: Fri Apr 13 10:54:32 2018 +0100 Committer: Pedro Boado <pbo...@apache.org> Committed: Fri Apr 13 23:31:12 2018 +0100 ---------------------------------------------------------------------- .../phoenix/hbase/index/scanner/ScannerBuilder.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/f71654a5/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/scanner/ScannerBuilder.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/scanner/ScannerBuilder.java b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/scanner/ScannerBuilder.java index ad09c0c..703fcd2 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/scanner/ScannerBuilder.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/hbase/index/scanner/ScannerBuilder.java @@ -31,6 +31,7 @@ import org.apache.hadoop.hbase.filter.BinaryComparator; import org.apache.hadoop.hbase.filter.CompareFilter.CompareOp; import org.apache.hadoop.hbase.filter.FamilyFilter; import org.apache.hadoop.hbase.filter.Filter; +import org.apache.hadoop.hbase.filter.FilterBase; import org.apache.hadoop.hbase.filter.FilterList; import org.apache.hadoop.hbase.filter.QualifierFilter; import org.apache.hadoop.hbase.util.Bytes; @@ -98,6 +99,21 @@ public class ScannerBuilder { } columnFilters.addFilter(columnFilter); } + + if(columns.isEmpty()){ + columnFilters.addFilter(new FilterBase() { + + @Override + public boolean filterAllRemaining() throws IOException { + return true; + } + + @Override + public ReturnCode filterKeyValue(Cell v) throws IOException { + return Filter.ReturnCode.INCLUDE; + } + }); + } return columnFilters; }