You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Amareshwari Sriramadasu (JIRA)" <ji...@apache.org> on 2015/03/31 13:34:53 UTC
[jira] [Created] (LENS-473) Change the queryable field validation
logic
Amareshwari Sriramadasu created LENS-473:
--------------------------------------------
Summary: 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
Priority: Critical
Fix For: 2.1
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)