You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2015/06/24 04:30:43 UTC
[jira] [Commented] (KYLIN-849) Couldn't query metrics on lookup
table PK
[ https://issues.apache.org/jira/browse/KYLIN-849?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598756#comment-14598756 ]
Shaofeng SHI commented on KYLIN-849:
------------------------------------
This is a bug; The lookup table's PK can be derived from fact table's FK, which is on the cube dimension columns in this case, so Kylin should be capabile to fulfill this query; It has been fixed and committed in 0.7-staging and 0.8 branches;
> Couldn't query metrics on lookup table PK
> -----------------------------------------
>
> Key: KYLIN-849
> URL: https://issues.apache.org/jira/browse/KYLIN-849
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v0.7.1
> Reporter: Shaofeng SHI
> Assignee: Shaofeng SHI
> Fix For: v0.7.2
>
>
> When running such a SQL, kylin will throw error "Can't find any realization. Please confirm with providers. SQL digest: fact table DEFAULT.TEST_KYLIN_FACT,group by [],filter on [],with aggregates[FunctionDesc [expression=MIN, parameter=ParameterDesc [type=column, value=CAL_DT], returnType=null], FunctionDesc [expression=MAX, parameter=ParameterDesc [type=column, value=CAL_DT], returnType=null]]":
> {code}
> SELECT
> min(test_cal_dt.cal_dt) as mmin
> ,max(test_cal_dt.cal_dt) as mmax
> FROM test_kylin_fact
> inner JOIN edw.test_cal_dt as test_cal_dt
> ON test_kylin_fact.cal_dt = test_cal_dt.cal_dt
> inner JOIN test_category_groupings
> ON test_kylin_fact.leaf_categ_id = test_category_groupings.leaf_categ_id
> AND test_kylin_fact.lstg_site_id = test_category_groupings.site_id
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)