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/08/13 13:39:45 UTC

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

Amareshwari Sriramadasu created LENS-730:
--------------------------------------------

             Summary: 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
             Fix For: 2.4


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) request_time, COALESCE(mq1.col1, mq2.col1) request_time, 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)