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

[bugfix] IS NOT NULL filter triggers KeyError: 'val' #5764

Merged
merged 1 commit into from
Aug 28, 2018

Conversation

mistercrunch
Copy link
Member

Traceback (most recent call last):
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/app.py", line 1982, in wsgi_app
    response = self.full_dispatch_request()
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/app.py", line 1614, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/app.py", line 1517, in handle_user_exception
    reraise(exc_type, exc_value, tb)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/_compat.py", line 33, in reraise
    raise value
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask/app.py", line 1598, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/models/core.py", line 1018, in wrapper
    value = f(*args, **kwargs)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/flask_appbuilder/security/decorators.py", line 26, in wraps
    return f(self, *args, **kwargs)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/views/core.py", line 1264, in explore
    utils.convert_legacy_filters_into_adhoc(form_data)
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/utils.py", line 962, in convert_legacy_filters_into_adhoc
    fd['adhoc_filters'].append(to_adhoc(filt, 'SIMPLE', clause))
  File "/srv/venvs/service/trusty/service_venv_python3.6/lib/python3.6/site-packages/superset/utils.py", line 726, in to_adhoc
    'comparator': filt['val'],
KeyError: 'val'

Copy link
Member

@betodealmeida betodealmeida left a comment

Choose a reason for hiding this comment

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

+1

We should at some point improve the metric component so that the value input is disabled when IS NULL and IS NOT NULL are selected.

@mistercrunch
Copy link
Member Author

+1 @hughhhh ^^^

@mistercrunch mistercrunch merged commit 6c6ea37 into apache:master Aug 28, 2018
@mistercrunch mistercrunch deleted the fix_null branch August 28, 2018 22:26
@betodealmeida
Copy link
Member

betodealmeida commented Aug 28, 2018

@mistercrunch @hughhhh I have a PR fixing the UI for this, will send for review.

Edit: #5766

mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Sep 21, 2018
graceguo-supercat pushed a commit to graceguo-supercat/superset that referenced this pull request Oct 9, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 11, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 11, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 11, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Oct 17, 2018
mistercrunch added a commit to lyft/incubator-superset that referenced this pull request Oct 29, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 30, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Nov 2, 2018
youngyjd pushed a commit to lyft/incubator-superset that referenced this pull request Nov 2, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 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.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants