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

Filtering on Painless scripted field throws error #14159

Closed
Bargs opened this issue Sep 25, 2017 · 1 comment
Closed

Filtering on Painless scripted field throws error #14159

Bargs opened this issue Sep 25, 2017 · 1 comment
Labels
blocker bug Fixes for quality problems that affect the customer experience Feature:Scripted Fields Scripted fields features v6.1.0 v7.0.0

Comments

@Bargs
Copy link
Contributor

Bargs commented Sep 25, 2017

We temporarily disabled the scripted field filter tests so we could update the esvm snapshots, we'll need to revert that PR and have the tests go green before we can release 6.1: #15169

I've already confirmed with the ES team that this is a bug in ES and will be fixed in 6.1 (filed in elastic/elasticsearch#26760). I'm creating this ticket as a reminder for us to test in Kibana once the fix has landed in ES.

Kibana version: 7.0, 6.1

Elasticsearch version: 7.0, 6.1

Description of the problem including expected versus actual behavior:

Attemping to filter on a Painless scripted field pops up a notifier error saying "Variable [doc] is not defined."

Steps to reproduce:

  1. Create a Painless scripted field
  2. Go to Discover
  3. Attempt to create a filter on your scripted field
@Bargs Bargs added Feature:Scripted Fields Scripted fields features blocker bug Fixes for quality problems that affect the customer experience v6.1.0 v7.0.0 labels Sep 25, 2017
@rjernst
Copy link
Member

rjernst commented Nov 10, 2017

Note that as discussed and agreed to in elastic/elasticsearch#26429, the "fix" is only a temporary measure to add back the existing hack for expressions in filter scripts. Kibana should switch to use painless for filters by 7.0.

Bargs added a commit that referenced this issue Nov 29, 2017
Bargs added a commit to Bargs/kibana that referenced this issue Nov 29, 2017
Bargs added a commit to Bargs/kibana that referenced this issue Nov 29, 2017
Bargs added a commit that referenced this issue Nov 29, 2017
Bargs added a commit that referenced this issue Nov 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker bug Fixes for quality problems that affect the customer experience Feature:Scripted Fields Scripted fields features v6.1.0 v7.0.0
Projects
None yet
Development

No branches or pull requests

2 participants