You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by GitBox <gi...@apache.org> on 2018/12/27 02:34:44 UTC

[GitHub] kangkaisen closed pull request #419: fix query no data when partion column as filter

kangkaisen closed pull request #419: fix query no data when partion column as filter 
URL: https://github.com/apache/kylin/pull/419
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/storage-druid/src/main/java/org/apache/kylin/storage/druid/read/filter/PruneIntervalsProcessor.java b/storage-druid/src/main/java/org/apache/kylin/storage/druid/read/filter/PruneIntervalsProcessor.java
index d19e9cde4e..0b30452902 100644
--- a/storage-druid/src/main/java/org/apache/kylin/storage/druid/read/filter/PruneIntervalsProcessor.java
+++ b/storage-druid/src/main/java/org/apache/kylin/storage/druid/read/filter/PruneIntervalsProcessor.java
@@ -110,7 +110,7 @@ public FilterCondition apply(FilterCondition input) {
         // prune segments via extracted time ranges
         RangeSet<Long> segmentRanges = TreeRangeSet.create();
         for (CubeSegment segment : cube.getSegments(SegmentStatusEnum.READY)) {
-            Range<Long> segmentRange = Range.closedOpen(segment.getTSRange().start.v, segment.getTSRange().start.v);
+            Range<Long> segmentRange = Range.closedOpen(segment.getTSRange().start.v, segment.getTSRange().end.v);
             boolean containQueryRange = !result.timeRanges.subRangeSet(segmentRange).isEmpty();
             if (segment.getInputRecords() > 0 && containQueryRange) {
                 segmentRanges.add(segmentRange);


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services