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 2019/12/13 10:09:24 UTC

[GitHub] [incubator-superset] stelios313 opened a new issue #8831: Cannot filter based on druid lookup dimension

stelios313 opened a new issue #8831: Cannot filter based on druid lookup dimension
URL: https://github.com/apache/incubator-superset/issues/8831
 
 
   I am trying to filter with bound > operator on a druid lookup dimension, and it does not work. 
   
   ### Expected results
   
   Expected to work same as any other dimension i am filtering. 
   
   ### Actual results
   
   ![image](https://user-images.githubusercontent.com/3808966/70791662-2d49b700-1da0-11ea-85ac-a6dc4f2cd824.png)
   
   #### How to reproduce the bug
   
   - Add a druid datasource to superset
   - Publish a lookup to the druid cluster
   - Define in the datasource a custom dimension based on a lookup such as:
   ```
   {
       "type": "extraction",
       "dimension": "publisher_id",
       "outputName": "publisher_first_revenue_month",
       "outputType": "LONG",
       "extractionFn": {
           "type": "registeredLookup",
           "optimize": true,
           "lookup": "publisher_first_revenue_month"
       }
   }    
   ```
   In the explore screen, generate a query using the custom dimension as the filter criteria with a bound operator (>, < , >=, <=). And the error from pydruid will show up.
   
   ### Environment
   
   - superset version: `0.35.0`
   - python version: `3.6`
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version of superset.
   - [ ] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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