-
Notifications
You must be signed in to change notification settings - Fork 25.6k
ES|QL: Fix generative tests - exclude unsupported fields #132708
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
ES|QL: Fix generative tests - exclude unsupported fields #132708
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
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.
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; |
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.
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
?
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.
Good point, it will need a small refactoring in the generative tests (I'm not capturing original types now), but it should be feasible.
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.
Done.
@alex-spies if you have a chance, please have another quick look
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.
Cool, thanks Luigi!
💔 Backport failed
You can use sqren/backport to manually backport by running |
Backporting manually #132791 |
Exclude
vector
fields from generative tests.Fixes: #132520