You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Archana H (JIRA)" <ji...@apache.org> on 2016/08/31 11:50:20 UTC

[jira] [Closed] (LENS-730) Issues with column aliases in multifact query

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

Archana H closed LENS-730.
--------------------------

> Issues with column aliases in multifact query
> ---------------------------------------------
>
>                 Key: LENS-730
>                 URL: https://issues.apache.org/jira/browse/LENS-730
>             Project: Apache Lens
>          Issue Type: Bug
>          Components: cube
>            Reporter: Amareshwari Sriramadasu
>            Assignee: Amareshwari Sriramadasu
>             Fix For: 2.6
>
>         Attachments: LENS-730.2.patch
>
>
> We saw couple of issues with aliases in multi fact queries.
> * cube select func1(col1), func2(col1), m1,m2 from cube where time_range_in(dt, now.day - 2days, now) writes the query as follows :
> select COALESCE(mq1.col1, mq2.col1) col1, COALESCE(mq1.col1, mq2.col1) col1, mq1.m1, mq2.m2 from
> (select func1(col1) col1, func2(col1) col1, m1 from fact1 where ...) mq1
> full outer join
> (select func1(col1) col1, func2(col1) col1, m2 from fact2 where ...) mq2
> on 
> mq1.col1 <=> mq2.col1 and mq1.col1 <=>mq2.col1
> * Another was the case of the alias of the column is same as the field selected.



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