You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2018/08/23 12:22:58 UTC

[GitHub] sowalassane edited a comment on issue #5496: Druid Postaggregations in superset: list index out of range

sowalassane edited a comment on issue #5496: Druid Postaggregations in superset: list index out of range
URL: https://github.com/apache/incubator-superset/issues/5496#issuecomment-415394936
 
 
   Hi all,
   @ahsanshah , @mistercrunch 
   I am not yet able to create my druid average metric in superset.
   I have a question regarding the different fields to fill when i create druid metric.
   ![image](https://user-images.githubusercontent.com/14936795/44524144-ad946680-a6dc-11e8-8fc8-067a3a1a1a7a.png)
   In the screenshot above could you confirm that i have to put my query to the JSON field ?
   I know that i have to select my druid Datasource on the dropdown list .
   What should i replace the three points at the beginning and at the end of my query below ?
   {
   ...
     "aggregations" : [
       { "type" : "count", "name" : "rows" },
       { "type" : "doubleSum", "name" : "tot", "fieldName" : "total" }
     ],
     "postAggregations" : [
       
          { "type"   : "arithmetic",
            "name"   : "div",
            "fn"     : "/",
            "fields" : [
              { "type" : "fieldAccess", "name" : "tot", "fieldName" : "tot" },
              { "type" : "fieldAccess", "name" : "rows", "fieldName" : "rows" }
            ]
          }
     ]
     ...
     }
   Why i don't have the metrics which are present in my druid data source?
    I have juste the count(*) metric as shown on the screenshot below.
   ![image](https://user-images.githubusercontent.com/14936795/44524805-2b597180-a6df-11e8-9d64-e1c34be60a3b.png)
   I am new on superset and druid and  i need you help please !!!
   Thanks in advance
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org