Skip to content

Conversation

luigidellaquila
Copy link
Contributor

@luigidellaquila luigidellaquila commented Aug 12, 2025

Exclude vector fields from generative tests.

Fixes: #132520

@luigidellaquila luigidellaquila added >test Issues or PRs that are addressing/adding tests auto-backport Automatically create backport pull requests when merged :Analytics/ES|QL AKA ESQL v9.1.3 labels Aug 12, 2025
@elasticsearchmachine elasticsearchmachine added v9.2.0 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) labels Aug 12, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Thank you @luigidellaquila !

I left an optional suggestion to limit the scope of the exclusion; please proceed at your own discretion :)

// no dense vectors for now, they are not supported in most commands
|| field.type().contains("vector")) == false;
|| field.type().contains("vector")
|| field.type().contains("unsupported")) == false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Unsupported fields can be used in KEEP,DROP, RENAME and may pose interesting edge cases, esp. as they naturally occur with union types.

Since this is just about vector fields, maybe we can go and check the original type to exclude just unsupported fields with original type ..._vector?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, it will need a small refactoring in the generative tests (I'm not capturing original types now), but it should be feasible.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.
@alex-spies if you have a chance, please have another quick look

Copy link
Contributor

@alex-spies alex-spies left a comment

Choose a reason for hiding this comment

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

Cool, thanks Luigi!

@luigidellaquila luigidellaquila merged commit 23066a3 into elastic:main Aug 13, 2025
33 checks passed
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
9.1 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 132708

@luigidellaquila
Copy link
Contributor Author

luigidellaquila commented Aug 13, 2025

Backporting manually #132791

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

Labels

:Analytics/ES|QL AKA ESQL auto-backport Automatically create backport pull requests when merged backport pending Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.1.3 v9.2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[CI] GenerativeIT test failing

3 participants