Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-2787

SUM(CASE WHEN...) does not supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.6.0
    • None
    • REST Service
    • None
    • jdk1.7.0_80, hbase-0.98.6-cdh5.3.9, apache-kylin-1.6.0-bin,

    Description

      Use a calculated field in tableau, but it can not work. There is an error in kylin.log:

      {{[Kylin][ODBC 1.0(w) Driver]The REST query request failed, the error message is: Error while executing SQL "SELECT SUM((CASE WHEN (( EXTRACT(YEAR FROM a.column1) = 2017) AND ( EXTRACT(MONTH FROM a.column1) = 6)) THEN a.column2 ELSE 0 END)) AS "sum_Calculation_FIIAIBABGCIFEFEJ_ok" FROM table a LEFT JOIN table b ON (a. column3= b.column1) LEFT JOIN table c ON (a. column4= c.column1) LEFT JOIN table d ON (a.column5 = d.column1) LEFT JOIN table e ON (a.column6 = e.column1) ": Can't find any realization. Please confirm with providers. SQL digest: fact table
      a ,group by [],filter on [],with aggregates[FunctionDesc [expression=SUM, parameter=null, returnType=null]].}}

      Attachments

        Activity

          People

            zhongjian Jason Zhong
            Light_sunshine Shendandan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: