[
https://issues.apache.org/jira/browse/LENS-481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481091#comment-14481091
]
Rajat Khandelwal commented on LENS-481:
---------------------------------------
Does the concept of least partitions make sense if we consider actual
partitions? If both the facts have missing partitions, then fact selection
might become skewed. The fact that has one daily partitions will get picked
before the fact that has two monthly partition. And for the provided time
range, two month data might be better than one day's data.
> LeastPartitionResolver should check for actual partitions and not requested
> partitions when lens.cube.query.fail.if.data.partial=false
> --------------------------------------------------------------------------------------------------------------------------------------
>
> Key: LENS-481
> URL: https://issues.apache.org/jira/browse/LENS-481
> Project: Apache Lens
> Issue Type: Bug
> Reporter: Angad Singh
> Assignee: Rajat Khandelwal
>
> Currently LeastPartitionResolver prunes facts based on the desired/requested
> partitions of facts (based on granularity). Consider a cube with 2 facts -
> one at daily granularity and one of monthly. Suppose the monthly fact is
> registered with no partitions and the daily fact has 1 partitions. when you
> query on a year-long time range, the LeastPartitionResolver spuriously prunes
> the daily fact (even though it had data) and selects the monthly cube (which
> doesn't have any data), and runs the query (giving no output).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)