-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Lens] Fix wrong suggestions from Datatable to other visualizations #93920
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works as expected, LGTM. I like how this will also produce a nice error in the case where a last value of <number field>
becomes last value of <string field>
because of a mapping/runtime field change.
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
…lastic#93920) Co-authored-by: Kibana Machine <[email protected]>
…93920) (#94096) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Marco Liberati <[email protected]>
Summary
Fixes #93572
This PR is a proposal fix for the wrong suggestions when using
last_value
operations in a datatable context, where the first used is ofstring
type.The proposed solution is a combination of two fixes:
last_value
I've attempted to work at the
indexpattern
level, but this specific scenario requires quite some bit of information, which has already handled by the visualization.Each visualization knowns better what it can handle, therefore it's easier to model specific vaidation at this level: the only missing bit was the access to the column operation when validating, which has been added.
While the validation will not currently shown, as it is used as filter criteria for the suggestions, in the future it may appear if newer feature enable choosing string data fields as possible choice.
Checklist
Delete any items that are not applicable to this PR.