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/02/02 08:21:39 UTC

[jira] [Commented] (KYLIN-1378) Add UI for TopN measure

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

Shaofeng SHI commented on KYLIN-1378:
-------------------------------------

Add one more param "encoding" into the sample JSON, by default its value is "dict"; if user selects not using "dict", it should be a value like "fixed_length:20", where the "fixed_length" is the encoding method, and the number is the max length.

> Add UI for TopN measure
> -----------------------
>
>                 Key: KYLIN-1378
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1378
>             Project: Kylin
>          Issue Type: Sub-task
>          Components: Web 
>            Reporter: Shaofeng SHI
>            Assignee: Zhong,Jason
>
> Need the user interface for user to define the TopN. User need to selecting: 1) the literal column; 2) the metrics column; 3) the expression (default SUM); 4) the soring order (default Desc).
> A sample is:
> {code}
> {
>     "name" : "TOP_SELLER",
>     "function" : {
>       "expression" : "TOP_N",
>       "parameter" : {
>         "name": "counter",
>         "type" : "column",
>         "value" : "PRICE",
>         "next_parameter" : {
>           "name": "literal",
>           "type" : "column",
>           "value" : "SELLER_ID",
>           "next_parameter" : {
>             "name": "expression",
>             "type" : "",
>             "value" : "SUM",
>             "next_parameter" : {
>               "name": "order",
>               "type" : "",
>               "value" : "DESC"
>                 "next_parameter" : {
>                 "name": "encoding",
>                 "type" : "",
>                 "value" : "dict"
>             }
>             }
>         }
>       },
>       "returntype" : "topn(100)"
>     },
> {code}



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