You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Shaofeng SHI (JIRA)" <ji...@apache.org> on 2016/06/07 01:59:21 UTC

[jira] [Commented] (KYLIN-1478) TopN measure should support non-dictionary encoding for ultra high cardinality

    [ https://issues.apache.org/jira/browse/KYLIN-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317656#comment-15317656 ] 

Shaofeng SHI commented on KYLIN-1478:
-------------------------------------

Adding a "configuration" field in the "function" part, using " "topn.encoding.<COLUME_NAME>" as the key for the encoding; here is a sample using the int encoding:

{code}

 {
      "name": "TOP_SELLER",
      "function": {
        "expression": "TOP_N",
        "parameter": {
          "type": "column",
          "value": "PRICE",
          "next_parameter": {
            "type": "column",
            "value": "SELLER_ID",
            "next_parameter": null
          }
        },
        "configuration": {
          "topn.encoding.SELLER_ID": "int:4"
        },
        "returntype": "topn(100)"
      }

{code}

> TopN measure should support non-dictionary encoding for ultra high cardinality
> ------------------------------------------------------------------------------
>
>                 Key: KYLIN-1478
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1478
>             Project: Kylin
>          Issue Type: New Feature
>    Affects Versions: v1.5.0
>            Reporter: Shaofeng SHI
>            Assignee: Shaofeng SHI
>             Fix For: v1.5.3
>
>
> TopN measure uses dictionary to encode the literal column, that may not work when the cardinality is ultra high. Need support other encoding like fixedLength.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)