Skip to content

[ES|QL] remove superfluous validation checks#230016

Merged
drewdaemon merged 43 commits intoelastic:mainfrom
drewdaemon:221230/remove-superfluous-checks
Aug 1, 2025
Merged

[ES|QL] remove superfluous validation checks#230016
drewdaemon merged 43 commits intoelastic:mainfrom
drewdaemon:221230/remove-superfluous-checks

Conversation

@drewdaemon
Copy link
Contributor

@drewdaemon drewdaemon commented Jul 30, 2025

Summary

Part of #221230

To remove

General

  • Field shadowing (shadowFieldType) a56c928
  • Wild-card support in commands (wildcardNotSupportedForCommand) e82f11e

Functions

STATS

  • No agg function ab71567
  • Combining agg and non-agg values ab71567
  • DISSECT append_separator unknownDissectKeyword ab71567

Checklist

@drewdaemon drewdaemon force-pushed the 221230/remove-superfluous-checks branch from 3127be0 to a56c928 Compare July 30, 2025 22:39
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/esql-ast 533 526 -7

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
esql 257.6KB 257.4KB -256.0B
onechat 597.3KB 592.3KB -5.0KB
total -5.2KB

Page load bundle

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

id before after diff
kbnUiSharedDeps-srcJs 3.8MB 3.8MB -7.8KB
Unknown metric groups

API count

id before after diff
@kbn/esql-ast 646 639 -7

History

@drewdaemon drewdaemon marked this pull request as ready for review July 31, 2025 23:38
@drewdaemon drewdaemon requested a review from a team as a code owner July 31, 2025 23:38
@drewdaemon drewdaemon added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana Team:ESQL ES|QL related features in Kibana t// v9.2.0 labels Jul 31, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-esql (Team:ESQL)

Copy link
Contributor

@stratoula stratoula left a comment

Choose a reason for hiding this comment

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

LGTM! Code review only

@drewdaemon drewdaemon merged commit db88e00 into elastic:main Aug 1, 2025
22 checks passed
szaffarano pushed a commit to szaffarano/kibana that referenced this pull request Aug 5, 2025
## Summary

Part of elastic#221230

**To remove**

General
- [x] Field shadowing (shadowFieldType)
elastic@a56c928
- [x] Wild-card support in commands (wildcardNotSupportedForCommand)
elastic@e82f11e

Functions
- [ ] Nested agg functions (will address these in
elastic#180518)
- [ ] Fields in constant-only positions (will address these in
elastic#180518)
- [x] Wild-card support (* — should mostly be covered by syntactical
validation)
elastic@e82f11e
- [x] Specific functions (fnDefinition.validate)
elastic@1c56b1b
- [x] MATCH and QSTR after certain commands
elastic@1c56b1b
- [x] logOfNegativeValue warning for log functions
elastic@1c56b1b
- [x] divideByZero warning (4 / 0)
elastic@1c56b1b
- [x] moduleByZero warning (4 % 0)
elastic@1c56b1b

STATS 
- [x] No agg function
elastic@ab71567
- [x] Combining agg and non-agg values
elastic@ab71567
- [x] DISSECT append_separator unknownDissectKeyword
elastic@ab71567



### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
## Summary

Part of elastic#221230

**To remove**

General
- [x] Field shadowing (shadowFieldType)
elastic@a56c928
- [x] Wild-card support in commands (wildcardNotSupportedForCommand)
elastic@e82f11e

Functions
- [ ] Nested agg functions (will address these in
elastic#180518)
- [ ] Fields in constant-only positions (will address these in
elastic#180518)
- [x] Wild-card support (* — should mostly be covered by syntactical
validation)
elastic@e82f11e
- [x] Specific functions (fnDefinition.validate)
elastic@1c56b1b
- [x] MATCH and QSTR after certain commands
elastic@1c56b1b
- [x] logOfNegativeValue warning for log functions
elastic@1c56b1b
- [x] divideByZero warning (4 / 0)
elastic@1c56b1b
- [x] moduleByZero warning (4 % 0)
elastic@1c56b1b

STATS 
- [x] No agg function
elastic@ab71567
- [x] Combining agg and non-agg values
elastic@ab71567
- [x] DISSECT append_separator unknownDissectKeyword
elastic@ab71567



### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@wildemat wildemat mentioned this pull request Aug 7, 2025
10 tasks
NicholasPeretti pushed a commit to NicholasPeretti/kibana that referenced this pull request Aug 18, 2025
## Summary

Part of elastic#221230

**To remove**

General
- [x] Field shadowing (shadowFieldType)
elastic@a56c928
- [x] Wild-card support in commands (wildcardNotSupportedForCommand)
elastic@e82f11e

Functions
- [ ] Nested agg functions (will address these in
elastic#180518)
- [ ] Fields in constant-only positions (will address these in
elastic#180518)
- [x] Wild-card support (* — should mostly be covered by syntactical
validation)
elastic@e82f11e
- [x] Specific functions (fnDefinition.validate)
elastic@1c56b1b
- [x] MATCH and QSTR after certain commands
elastic@1c56b1b
- [x] logOfNegativeValue warning for log functions
elastic@1c56b1b
- [x] divideByZero warning (4 / 0)
elastic@1c56b1b
- [x] moduleByZero warning (4 % 0)
elastic@1c56b1b

STATS 
- [x] No agg function
elastic@ab71567
- [x] Combining agg and non-agg values
elastic@ab71567
- [x] DISSECT append_separator unknownDissectKeyword
elastic@ab71567



### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
@drewdaemon drewdaemon deleted the 221230/remove-superfluous-checks branch October 7, 2025 20:56
@rodrigomadalozzo
Copy link

Hello @drewdaemon !
Is there a method/workaround to disable or suppress these warnings when running queries on older versions that are not covered by the fix?

@drewdaemon
Copy link
Contributor Author

Hi @rodrigomadalozzo ! We didn't really see this particular change as a bug fix, just a strategic simplification.

If you're encountering incorrect validation errors on an older version, unfortunately there isn't much to do except ignore them and submit your query. We know the validation has had bugs... 9.2 includes a lot of fundamental fixes to the client-side validation.

Feel free to reach out if you have more questions or a specific issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:ES|QL ES|QL related features in Kibana release_note:skip Skip the PR/issue when compiling release notes Team:ESQL ES|QL related features in Kibana t// v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants