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

Group other values doesn't work for scripted fields #48570

Closed
lukasolson opened this issue Oct 17, 2019 · 2 comments · Fixed by #71329
Closed

Group other values doesn't work for scripted fields #48570

lukasolson opened this issue Oct 17, 2019 · 2 comments · Fixed by #71329
Assignees
Labels
bug Fixes for quality problems that affect the customer experience Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Scripted Fields Scripted fields features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort

Comments

@lukasolson
Copy link
Member

Describe the bug:

The "group other values in a separate bucket" option doesn't work for scripted fields.

Steps to reproduce:

  1. Create a scripted field
  2. Create a data table visualization
  3. Split rows using a terms aggregation on the scripted field
  4. Select to group other values in a separate bucket

Expected behavior:

The other bucket would work, even with scripted fields.

Screenshots (if relevant):

Kapture 2019-10-17 at 11 33 24

Any additional context:

In looking at the query generated for the "other bucket", it adds an exists query on the scripted field. Of course, since the scripted field itself doesn't exist in the index, this will filter out all of the hits. I'm not sure if that exists query is necessary for regular fields, but we need to remove it for scripted fields:

image

@lukasolson lukasolson added bug Fixes for quality problems that affect the customer experience Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Scripted Fields Scripted fields features Team:Visualizations Visualization editors, elastic-charts and infrastructure Team:AppArch labels Oct 17, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@lukeelmers lukeelmers self-assigned this Jan 30, 2020
@lukeelmers lukeelmers added impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort triaged and removed Team:Visualizations Visualization editors, elastic-charts and infrastructure labels Jul 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Aggregations Aggregation infrastructure (AggConfig, esaggs, ...) Feature:Scripted Fields Scripted fields features impact:medium Addressing this issue will have a medium level of impact on the quality/strength of our product. loe:small Small Level of Effort
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants