You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "zhimin wu (Jira)" <ji...@apache.org> on 2021/07/02 13:49:00 UTC

[jira] [Commented] (KYLIN-5025) when filter is a derived column equals another column query failed

    [ https://issues.apache.org/jira/browse/KYLIN-5025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17373549#comment-17373549 ] 

zhimin wu commented on KYLIN-5025:
----------------------------------

I found this problem when fix https://issues.apache.org/jira/browse/KYLIN-4969.

> when filter is a derived column equals another column query failed
> ------------------------------------------------------------------
>
>                 Key: KYLIN-5025
>                 URL: https://issues.apache.org/jira/browse/KYLIN-5025
>             Project: Kylin
>          Issue Type: Bug
>          Components: Query Engine
>            Reporter: zhimin wu
>            Assignee: zhimin wu
>            Priority: Major
>         Attachments: image-2021-07-02-21-41-15-854.png
>
>
> Just use the following SQL query to learn_kylin. 
> h6. SELECT
>  count(*)
>  FROM KYLIN_SALES as KYLIN_SALES
>  INNER JOIN KYLIN_CAL_DT as KYLIN_CAL_DT
>  ON KYLIN_SALES.PART_DT = KYLIN_CAL_DT.CAL_DT
>  WHERE KYLIN_SALES.PART_DT = KYLIN_CAL_DT.MONTH_BEG_DT
> that was OK, but if you put the derived column to the left of the filter like the following SQL, query failed.
> h6. SELECT
>  count(*)
>  FROM KYLIN_SALES as KYLIN_SALES
>  INNER JOIN KYLIN_CAL_DT as KYLIN_CAL_DT
>  ON KYLIN_SALES.PART_DT = KYLIN_CAL_DT.CAL_DT
>  WHERE  KYLIN_CAL_DT.MONTH_BEG_DT = KYLIN_SALES.PART_DT
> {{!image-2021-07-02-21-41-15-854.png|width=618,height=271!}}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)