Repository: phoenix Updated Branches: refs/heads/master a0b0c1e1e -> 70c9c6bb2
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/70c9c6bb Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/70c9c6bb Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/70c9c6bb Branch: refs/heads/master Commit: 70c9c6bb2d2073bb40640a0a794032b166c4b63b Parents: a0b0c1e Author: Ankit Singhal <ankitsingha...@gmail.com> Authored: Fri Apr 13 12:09:30 2018 +0530 Committer: Ankit Singhal <ankitsingha...@gmail.com> Committed: Fri Apr 13 12:09:30 2018 +0530 ---------------------------------------------------------------------- .../phoenix/hbase/index/scanner/ScannerBuilder.java | 10 ++++++++++ 1 file changed, 10 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/70c9c6bb/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..4c42fe4 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,15 @@ public class ScannerBuilder { } columnFilters.addFilter(columnFilter); } + + if(columns.isEmpty()){ + columnFilters.addFilter(new FilterBase(){ + @Override + public boolean filterAllRemaining() throws IOException { + return true; + } + }); + } return columnFilters; }