Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Information Provided
-
v3.1.0
-
CDH 6.2.1
Description
Using the latest version of 3.1.0, the following is still not supported. Why?
使用了3.1.0的最新版,依然不支持以下写法,为何?
select sum(case ACCOUNT_COUNTRY when 'CN' THEN 1 else 0 end) from kylin_account
error info:
No realization found for OLAPContext, CUBE_UNMATCHED_AGGREGATION[FunctionDesc [expression=SUM, parameter=CASE(=($3, 'CN'), 1, 0), returnType=null]], rel#2071:OLAPTableScan.OLAP.[](table=[DEFAULT, KYLIN_ACCOUNT],ctx=,fields=[0, 1, 2, 3, 4, 5]) while executing SQL: "select * from (select sum((case ACCOUNT_COUNTRY when 'CN' THEN 1 else 0 end)) from kylin_account) limit 50000"