-
Notifications
You must be signed in to change notification settings - Fork 25.5k
Add object param for keeping synthetic source #113690
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
kkrik-es
merged 29 commits into
elastic:main
from
kkrik-es:synthetic-source/keep-object-param
Oct 3, 2024
Merged
Changes from 14 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
77277c2
Add object param for keeping synthetic source
kkrik-es 468d250
Update docs/changelog/113690.yaml
kkrik-es efa3c77
Merge branch 'main' into synthetic-source/keep-object-param
kkrik-es 3b30147
fix merging
kkrik-es d0d31b5
Merge remote-tracking branch 'origin/synthetic-source/keep-object-par…
kkrik-es 3ee3a86
Merge branch 'main' into synthetic-source/keep-object-param
kkrik-es 16c9865
add tests
kkrik-es 4000ac1
Merge branch 'main' into synthetic-source/keep-object-param
kkrik-es 51a5f71
merge
kkrik-es 6dcdf44
fix randomized tests
kkrik-es 9d8232c
Merge branch 'refs/heads/main' into synthetic-source/keep-object-param
kkrik-es b8b85c7
add documentation
kkrik-es ee047bc
dedup id in docs
kkrik-es aea0cc5
Merge branch 'main' into synthetic-source/keep-object-param
kkrik-es 58fd5b9
Merge branch 'main' into synthetic-source/keep-object-param
kkrik-es c214eb4
update documentation
kkrik-es 97b6c01
update documentation
kkrik-es f4ddb0e
fix bwc
kkrik-es 18dc913
fix bwc
kkrik-es b5f1d71
fix unintended
kkrik-es 432757f
Revert "fix bwc"
kkrik-es 771bc38
Revert "fix bwc"
kkrik-es 895e08f
add missing test
kkrik-es d3b5c30
fix transform
kkrik-es de651f8
fix transform
kkrik-es 6887504
fix transform
kkrik-es 92d5c1b
fix transform
kkrik-es c4d0111
fix transform
kkrik-es f9d0330
Merge branch 'elastic:main' into synthetic-source/keep-object-param
kkrik-es 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,5 @@ | ||
pr: 113690 | ||
summary: Add object param for keeping synthetic source | ||
area: Mapping | ||
type: enhancement | ||
issues: [] |
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.
Maybe we shouldn't guarantee that we store original source when
synthetic_source_keep
is set toarrays
is enabled? Maybe we we should just guarantee the array ordering is guaranteed? This gives us better ways to reduce the overhead later on without breaking bwc.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.
If we need to main bwc with things like field: [1, 2, [3], [[4, [5]]], ["5"], 6] , then that makes things more difficult. Ideally we would synthesize this as: field: [1, 2, 3, 5, 5, 6] (assuming this is a number field).
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.
But this is how it's implemented right now. Are you suggesting that we don't document the current behavior? I think it'll be a breaking change if we change it to return
[1, 2, 3, 5, 5, 6]
in the example above, whether we document it or not..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.
I guess we can be explicit that we don't guarantee the exact form.. is this what you have in mind?
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.
Apologies, yes, this is what I mean.
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.
I've updated the wording to reflect that this may change, ptal.