ajreid21 commented on issue #3908: Issue with Dimension Specs
URL: 
https://github.com/apache/incubator-superset/issues/3908#issuecomment-345882972
 
 
   Does it work when you include an additional group by field? I noticed this 
as well, but it works when you include another group by field.
   
   Looks like when you include more than one, the query does:
   `{
   ...,
   "dimension**s**": 
   {
        "oneGroupByField",
        { 
     "type":"lookup",
     "dimension":"device_type_id",
     "replaceMissingValueWith": "Unknown",
     "outputName":"device_type_id",
     "lookup":{"type": "map", "map":
        {"1":"Desktop", "2": "Phone","3":"Tablet","4":"ConnectedTv"}
        }
   }
   }`
   
   and if you only have 1 group by field with a dimesionspec, it looks like:
   
   `{
   ...,
   "dimension: 
   {
     "type":"lookup",
     "dimension":"device_type_id",
     "replaceMissingValueWith": "Unknown",
     "outputName":"device_type_id",
     "lookup":{"type": "map", "map":
        {"1":"Desktop", "2": "Phone","3":"Tablet","4":"ConnectedTv"}
        }
   }`
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to