Skip to content

Conversation

@bartoval
Copy link
Contributor

@bartoval bartoval commented Jul 31, 2025

Summary

The previous implementation incorrectly used .filter() resulting in no actual filtering of the comment field but every row.
Replaced with .map() to properly exclude comment and return a correctly typed object.

test:

  • remove the autogenerated file src/platform/packages/shared/kbn-esql-ast/src/definitions/generated/commands/commands.ts
  • then run the script
  • a new file commands file will be created

@bartoval bartoval self-assigned this Jul 31, 2025
@bartoval bartoval requested a review from a team as a code owner July 31, 2025 18:08
@bartoval bartoval requested a review from drewdaemon July 31, 2025 18:09
@bartoval bartoval added release_note:fix 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)

@bartoval bartoval force-pushed the esql_fix_wrong_comment_filter branch from ab7140c to 1123e07 Compare July 31, 2025 18:27
@bartoval bartoval merged commit 2b040e1 into elastic:main Aug 1, 2025
12 checks passed
szaffarano pushed a commit to szaffarano/kibana that referenced this pull request Aug 5, 2025
…c#230116)

## Summary

The previous implementation incorrectly used .filter() resulting in no
actual filtering of the comment field but every row.
Replaced with .map() to properly exclude comment and return a correctly
typed object.


test:
- remove the autogenerated file
`src/platform/packages/shared/kbn-esql-ast/src/definitions/generated/commands/commands.ts`
- then run the script 
- a new file commands file will be created
delanni pushed a commit to delanni/kibana that referenced this pull request Aug 5, 2025
…c#230116)

## Summary

The previous implementation incorrectly used .filter() resulting in no
actual filtering of the comment field but every row.
Replaced with .map() to properly exclude comment and return a correctly
typed object.


test:
- remove the autogenerated file
`src/platform/packages/shared/kbn-esql-ast/src/definitions/generated/commands/commands.ts`
- then run the script 
- a new file commands file will be created
@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
…c#230116)

## Summary

The previous implementation incorrectly used .filter() resulting in no
actual filtering of the comment field but every row.
Replaced with .map() to properly exclude comment and return a correctly
typed object.


test:
- remove the autogenerated file
`src/platform/packages/shared/kbn-esql-ast/src/definitions/generated/commands/commands.ts`
- then run the script 
- a new file commands file will be created
@bartoval bartoval deleted the esql_fix_wrong_comment_filter branch November 6, 2025 21:04
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:fix 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.

3 participants