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

[KQL] Remove number parsing #93658

Merged
merged 4 commits into from
Mar 7, 2021
Merged

[KQL] Remove number parsing #93658

merged 4 commits into from
Mar 7, 2021

Conversation

lukasolson
Copy link
Member

@lukasolson lukasolson commented Mar 4, 2021

Summary

Fixes #48835.
Fixes #81581.
Fixes #85548.

Prior to this PR, when parsing a KQL expression, we would attempt to distinguish numbers from regular strings. This has been error-prone because of regex issues and handling numbers larger than JavaScript can handle. If we don't distinguish between strings and numbers, the queries that are generated and sent to Elasticsearch work regardless of whether they're passed as numbers or strings, so we can remove this behavior altogether.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

Release note

KQL will no longer incorrectly parse unquoted strings as numbers.

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

@lukasolson lukasolson requested review from a team as code owners March 4, 2021 22:37
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Mar 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks for walking me through the changes

Copy link
Contributor

@andrewvc andrewvc left a comment

Choose a reason for hiding this comment

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

LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
data 815.6KB 815.5KB -139.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @lukasolson

@lukasolson lukasolson merged commit acb7b77 into elastic:master Mar 7, 2021
@kibanamachine
Copy link
Contributor

Friendly reminder: Looks like this PR hasn’t been backported yet.
To create backports run node scripts/backport --pr 93658 or prevent reminders by adding the backport:skip label.

@kibanamachine kibanamachine added the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 9, 2021
lukasolson added a commit to lukasolson/kibana that referenced this pull request Mar 9, 2021
* [KQL] Remove number parsing

* Update test snapshots
lukasolson added a commit to lukasolson/kibana that referenced this pull request Mar 9, 2021
* [KQL] Remove number parsing

* Update test snapshots
lukasolson added a commit that referenced this pull request Mar 9, 2021
* [KQL] Remove number parsing

* Update test snapshots
@kibanamachine
Copy link
Contributor

Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync.

@kibanamachine kibanamachine removed the backport missing Added to PRs automatically when the are determined to be missing a backport. label Mar 10, 2021
lukasolson added a commit that referenced this pull request Mar 10, 2021
* [KQL] Remove number parsing

* Update test snapshots

Co-authored-by: Kibana Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
6 participants