Skip to content

Conversation

@limotova
Copy link
Contributor

@limotova limotova commented Apr 29, 2025

There was a bug when trying to generate a Set using Set.of when a
randomly picked DataType is already present in one of the other
arguments, causing an IllegalArgumentException to be thrown

Fixes #127514, #127535

@limotova limotova added >test Issues or PRs that are addressing/adding tests :Analytics/ES|QL AKA ESQL labels Apr 29, 2025
@limotova limotova marked this pull request as ready for review April 29, 2025 19:10
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Apr 29, 2025
@elasticsearchmachine
Copy link
Collaborator

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

There was a bug when trying to generate a Set using Set.of when a
randomly picked DataType is already present in one of the other
arguments, causing an IllegalArgumentException to be thrown
@limotova limotova force-pushed the suggested-cast-test-bug branch from 44be17d to 16a9cd7 Compare April 29, 2025 22:26
@limotova limotova requested review from dnhatn and nik9000 April 30, 2025 02:16
Copy link
Member

@dnhatn dnhatn left a comment

Choose a reason for hiding this comment

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

There are two test methods, randomValueOtherThan and randomValueOtherThanMany, for this. But the fix in this PR looks good already - no need to change. Thanks Larisa for fixing this.

@limotova limotova merged commit b96789e into elastic:main Apr 30, 2025
17 checks passed
@limotova limotova deleted the suggested-cast-test-bug branch April 30, 2025 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/ES|QL AKA ESQL Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

EsqlDataTypeConverterTests.testSuggestedCast failure

3 participants