Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for "Having" filter in druid #553

Merged
merged 1 commit into from
Jun 21, 2016

Conversation

x4base
Copy link
Contributor

@x4base x4base commented Jun 2, 2016

No description provided.

@coveralls
Copy link

coveralls commented Jun 2, 2016

Coverage Status

Coverage decreased (-0.3%) to 81.843% when pulling 2adbe19f2f5b03f6df4d17c5cfcdc2e90675a5ed on x4base:having_filter into cb384d0 on airbnb:master.

@coveralls
Copy link

coveralls commented Jun 2, 2016

Coverage Status

Coverage decreased (-0.2%) to 81.85% when pulling 2b3df1de8165da8835e1305c9e71b5709a600c21 on x4base:having_filter into cb384d0 on airbnb:master.

@coveralls
Copy link

coveralls commented Jun 2, 2016

Coverage Status

Coverage decreased (-0.2%) to 81.85% when pulling f41a05f58dbe3dc4c0dcc144d0dedb59602e4174 on x4base:having_filter into cb384d0 on airbnb:master.

@@ -1265,6 +1243,59 @@ def recursive_get_fields(_conf):
query=query_str,
duration=datetime.now() - qry_start_dttm)

@staticmethod
def get_filters(filter):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filter is a standard lib, main namespace function. Here you are redefining it for the scope of this function. Use filter_ or some other name instead.

@mistercrunch
Copy link
Member

This is great, I finally took the time to test it. The last missing thing for me is to make sure that only metrics are shown in the Having dropdown field.

@x4base
Copy link
Contributor Author

x4base commented Jun 7, 2016

Do you mean the options should not include dimensions? But sometimes the user may want to filter the dimensions in the post-aggregation stage, right?

@mistercrunch
Copy link
Member

Oh, if that works then it's good!

@mistercrunch
Copy link
Member

Actually it fails if you try to to use == on a dimension using a string...

@x4base
Copy link
Contributor Author

x4base commented Jun 8, 2016

Sorry I didn't test the filter with strings, it should work now

@mistercrunch
Copy link
Member

PR needs a rebase ...

Support the dimSelector having filters
@x4base
Copy link
Contributor Author

x4base commented Jun 21, 2016

Updated

@coveralls
Copy link

coveralls commented Jun 21, 2016

Coverage Status

Coverage decreased (-0.3%) to 81.308% when pulling cf7bab3 on x4base:having_filter into d71a67c on airbnb:master.

@mistercrunch mistercrunch merged commit 485234b into apache:master Jun 21, 2016
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.10.0 labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants