You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Jaideep Dhok (JIRA)" <ji...@apache.org> on 2015/04/02 15:29:37 UTC

[jira] [Assigned] (LENS-473) Change the queryable field validation logic

     [ https://issues.apache.org/jira/browse/LENS-473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaideep Dhok reassigned LENS-473:
---------------------------------

    Assignee: Jaideep Dhok

> Change the queryable field validation logic
> -------------------------------------------
>
>                 Key: LENS-473
>                 URL: https://issues.apache.org/jira/browse/LENS-473
>             Project: Apache Lens
>          Issue Type: Improvement
>          Components: cube
>    Affects Versions: 2.1
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Jaideep Dhok
>            Priority: Critical
>             Fix For: 2.1
>
>         Attachments: lens-473.patch
>
>
> Right now the field validation logic at https://github.com/apache/incubator-lens/blob/master/lens-cube/src/main/java/org/apache/lens/cube/parse/AliasReplacer.java#L103 does the following :
> It gets all the dim-attributes queried and measures queried in the user query (after expressions are expanded), then it finds if there is single derived cube having all the attributes queried and any of measures queried. And makes sure all the measures queried are covered by attribute covering derived cubes. For chain attributes, it picks source columns of chains as the dim-attributes in the above validate.
> Instead it should do the following :
> * Do validation only when query has aggregates
> * Pick dim-attributes (or chain ref columns) only if they are not part of aggregate expression.
> * Above mentioned logic of attribute covering and measuring covering logic would be the same.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)