-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Fix for union-types for multiple columns with the same name #110793
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
Merged
craigtaverner
merged 22 commits into
elastic:main
from
craigtaverner:union_types_remove_fields
Jul 15, 2024
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3511131
Make union types use unique attribute names
alex-spies ead0948
Cleanup leftover
alex-spies 5541673
Added failing test and final fix to EsRelation
craigtaverner a3b7933
Implement FieldAttribute.fieldName()
alex-spies 5905a0f
Fix tests
alex-spies 0fb1c37
Refactor
alex-spies 4ecf677
Do not ignore union typed field's parent
alex-spies 6f4833f
Fix important typo
alex-spies 69fba3e
Mute unrelated (part of) test
alex-spies 03a2255
Move capability to better location
alex-spies 5878131
Fix analyzer tests
alex-spies 3b4cea8
multi-node tests with an earlier version of union-types (before this …
craigtaverner 7d315f3
Add capability to remaining failing tests
alex-spies 4aa2857
Remove variable
alex-spies 21352ad
Add more complex test
alex-spies 99c093d
Consolidate union type cleanup rules
alex-spies 8839cad
Add 3 more required_capability's to make CI happy
alex-spies 26dff9b
Update caps for union type subfield yaml tests
alex-spies 2bde896
Update docs/changelog/110793.yaml
craigtaverner f6ba8ea
Refined changelog text
craigtaverner 1b6a5a8
Mute BWC for 8.15.0 for failing YAML tests
craigtaverner 88e01b6
union_types_remove_fields for all 160_union_types tests
craigtaverner File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| pr: 110793 | ||
| summary: Fix for union-types for multiple columns with the same name | ||
| area: ES|QL | ||
| type: bug | ||
| issues: | ||
| - 110490 | ||
| - 109916 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It's worth adding here another more advanced variant (but still trying to keep the original query that brought up this issue):
FROM sample_data, sample_data_str | SORT client_ip::ip, @timestamp ASC| eval client_ip_as_ip = client_ip::ip.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.
That's a good one.