Incubator-superset: Cannot filter based on druid lookup dimension

Created on 13 Dec 2019  路  3Comments  路  Source: apache/incubator-superset

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

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.
#bug inactive

Most helpful comment

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.67. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

All 3 comments

Issue-Label Bot is automatically applying the label #bug to this issue, with a confidence of 0.67. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

Pretty sure that's been fixed in master at the bug bash. Here https://github.com/apache/incubator-superset/pull/8714

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

john-bodley picture john-bodley  路  3Comments

eliab picture eliab  路  3Comments

amien90 picture amien90  路  3Comments

shyam2794 picture shyam2794  路  3Comments

vylc picture vylc  路  3Comments