[
https://issues.apache.org/jira/browse/KYLIN-2670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16095949#comment-16095949
]
gongliaoan commented on KYLIN-2670:
-----------------------------------
kylin version 2.0 can support case when, this problem is case when in sql like
"select "WEB_ACCESS_FACT_TBL"."DAY" as "c0" from "WEB_ACCESS_FACT_TBL" as
"WEB_ACCESS_FACT_TBL" group by "WEB_ACCESS_FACT_TBL"."DAY" order by CASE WHEN
"WEB_ACCESS_FACT_TBL"."DAY" IS NULL THEN 1 ELSE 0 END,
"WEB_ACCESS_FACT_TBL"."DAY" ASC "
this problem is fixed in kylin version 2.1,you can find the fixed code in
github and chance the code in version 2.0 to fixed the problem in version 2.0
> CASE WHEN supporting problem in kylin2.0
> ----------------------------------------
>
> Key: KYLIN-2670
> URL: https://issues.apache.org/jira/browse/KYLIN-2670
> Project: Kylin
> Issue Type: Bug
> Components: Query Engine
> Affects Versions: v2.0.0
> Reporter: zhou degao
> Assignee: liyang
> Labels: focus, scope
>
> Following query failed in kylin 2.0 but succeeded in kylin 1.6
> select "fact_pv_data_alias"."PRODUCT_NAME" as "c0",
> "fact_pv_data_alias"."PLATFORM" as "c1" from "CSDNBI"."FACT_PV_DATA" as
> "fact_pv_data_alias" group by "fact_pv_data_alias"."PRODUCT_NAME",
> "fact_pv_data_alias"."PLATFORM" order by CASE WHEN
> "fact_pv_data_alias"."PRODUCT_NAME" IS NULL THEN 1 ELSE 0 END,
> "fact_pv_data_alias"."PRODUCT_NAME" ASC, CASE WHEN
> "fact_pv_data_alias"."PLATFORM" IS NULL THEN 1 ELSE 0 END,
> "fact_pv_data_alias"."PLATFORM" ASC
> Reported error in kylin 2.0:
> Error while executing SQL "select "fact_pv_data_alias"."PRODUCT_NAME" as
> "c0", "fact_pv_data_alias"."PLATFORM" as "c1" from "CSDNBI"."FACT_PV_DATA" as
> "fact_pv_data_alias" group by "fact_pv_data_alias"."PRODUCT_NAME",
> "fact_pv_data_alias"."PLATFORM" order by CASE WHEN
> "fact_pv_data_alias"."PRODUCT_NAME" IS NULL THEN 1 ELSE 0 END,
> "fact_pv_data_alias"."PRODUCT_NAME" ASC, CASE WHEN
> "fact_pv_data_alias"."PLATFORM" IS NULL THEN 1 ELSE 0 END,
> "fact_pv_data_alias"."PLATFORM" ASC LIMIT 50000": index (2) must be less than
> size (2)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)