Skip to content
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

ESQL: Add UNSUPPORTED type in unit tests #119639

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

GalLalouche
Copy link
Contributor

Small addition to tests, aligning their types better with production code.

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

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

@GalLalouche GalLalouche force-pushed the tests/unsupported_types branch from 850f6cb to 5e27838 Compare January 7, 2025 13:15
@GalLalouche GalLalouche force-pushed the tests/unsupported_types branch from 5e27838 to 96ed2f0 Compare January 7, 2025 13:34
@GalLalouche GalLalouche enabled auto-merge (squash) January 7, 2025 13:34
Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

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

LGTM, although surely there are more tests than just union-types.csv-spec that use this?

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.

Thanks @GalLalouche ! I agree with this change, as it makes the expected results more correct.

@GalLalouche
Copy link
Contributor Author

LGTM, although surely there are more tests than just union-types.csv-spec that use this?

Unsupported type is a very specific column type caused by unresolved unions. Or at least, no other unit tests failed due to this change ¯\_(ツ)_/¯.

Small addition to tests, aligning their types better with production
code.
@GalLalouche GalLalouche force-pushed the tests/unsupported_types branch from 96ed2f0 to 005d90a Compare January 7, 2025 16:42
@alex-spies
Copy link
Contributor

alex-spies commented Jan 7, 2025

Unsupported type is a very specific column type caused by unresolved unions.

I think there's other examples, although we likely just don't have unit tests for them. E.g. nested and flattened fields aren't supported and should produce this column type - c.f. here.

@GalLalouche GalLalouche merged commit 75bf27c into elastic:main Jan 7, 2025
15 of 16 checks passed
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.x

GalLalouche added a commit to GalLalouche/elasticsearch that referenced this pull request Jan 7, 2025
Small addition to tests, aligning their types better with production
code.
GalLalouche added a commit to GalLalouche/elasticsearch that referenced this pull request Jan 8, 2025
Small addition to tests, aligning their types better with production
code.
GalLalouche added a commit to GalLalouche/elasticsearch that referenced this pull request Jan 9, 2025
Small addition to tests, aligning their types better with production
code.
elasticsearchmachine pushed a commit that referenced this pull request Jan 9, 2025
Small addition to tests, aligning their types better with production
code.
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 Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) >test Issues or PRs that are addressing/adding tests v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants