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

Get 'Column does not exist in row key desc" on cube has TopN measure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v1.6.0
    • Query Engine
    • None

    Description

      Define a cube which has a TopN measure to collect the top tags on Twitter; when query with the tag as a "where" condition,

      select TWITTER_TAG3.HOUR_START , hashtag, count(*) as num from TWITTER_TAG3 where hashtag = 'ALDUBAnew'  group by HOUR_START, hashtag order by HOUR_START
      

      As TopN doesn't put the UHC column into row key, it couldn't be used as the filtering condition, then Kylin reports error: "Column DEFAULT.TWITTER_TAG3.HASHTAG does not exist in row key desc"

      In this ccase TopN should say no for this query as it doesn't have the capacity, then Kylin can rounte to other cubes.

      For user who only has one cube, he should change to use "having" clause instead of "where", although the performance is not good, it can return result in the end.

      Attachments

        Activity

          People

            shaofengshi Shao Feng Shi
            shaofengshi Shao Feng Shi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: