-
Notifications
You must be signed in to change notification settings - Fork 2.2k
fix: CustomItemSerializer not applied correctly in queries and SqlParameter [Cosmos] #48811
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
xinlian12
merged 35 commits into
Azure:main
from
xinlian12:fix/issue-45521-custom-item-serializer-v2
Apr 17, 2026
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
85cc10b
fix: ensure CustomItemSerializer is not applied to internal query pip…
0a651aa
fix: address review iteration 1 initialize rawValue in ObjectNode co…
215ebf0
fix: clone SqlQuerySpec before applying serializer to prevent race co…
eb44dd6
fix: address PR review forceSerialization, remove ModelBridgeInterna…
0a01716
test: add coverage for CustomItemSerializer with ORDER BY, GROUP BY, …
01aa28d
fix: guard SqlParameter.applySerializer against unimplemented seriali…
6b4ddbe
fix: use clientSerializer instead of hardcoded EnvelopWrappingItemSer…
xinlian12 6f2f601
add changelog
xinlian12 0fa8c3a
fix: guard resolveTestNameSuffix against empty row for tests without …
xinlian12 2942745
fix: use DEFAULT_SERIALIZER for aggregate/distinct/groupby query tests
xinlian12 77f2b67
fix: use Integer.class for SELECT VALUE COUNT aggregate serializer test
xinlian12 dd17484
feat: add BasicCustomItemSerializer for query tests (issue #45521)
xinlian12 84b0de8
Skip query tests for envelope-wrapping serializer instead of falling …
xinlian12 fbc9e48
fix: CustomItemSerializer not applied correctly in queries and SqlPar…
xinlian12 f7124cc
fix: handle non-document values in EnvelopWrappingItemSerializer
xinlian12 2fa237a
fix: address review comments for custom serializer PR
xinlian12 7a26ae9
refactor: centralize serializer-neutralization for internal pipeline …
xinlian12 6835a4d
remove unused files
xinlian12 be6eb7a
update changelog
xinlian12 6cf01a1
Address PR review comments: NPE guard, optimization, Javadoc clarity
xinlian12 ad7c046
Fix Cosmos Spark BannedDependencies enforcer failure by updating scal…
xinlian12 7677a27
Merge branch 'fix/cosmos-spark-jackson-version-mismatch' into upstrea…
xinlian12 d205163
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
xinlian12 73308ae
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
xinlian12 63e649b
merge from main and resolve conflcits
xinlian12 0ffba39
Add concurrent SqlQuerySpec reuse test and improve pipeline Javadoc
xinlian12 0b15550
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
xinlian12 b1d55b1
Merge branch 'upstream-main' into fix/issue-45521-custom-item-seriali…
xinlian12 0c7b6e5
fix: defensive copy of SqlQuerySpec in QueryPlanRetriever to prevent …
xinlian12 a021c31
refactor: add SqlQuerySpec.clone() and rewrite concurrent test with Flux
xinlian12 cbd5020
simplify: move SqlQuerySpec copy to private method in QueryPlanRetriever
xinlian12 cec9e1a
refactor: move cloneSqlParameter to SqlParameter.clone()
xinlian12 73c4360
refactor: make SqlParameter.createCopy() private with accessor pattern
xinlian12 a696f39
Merge branch 'main' of https://github.com/Azure/azure-sdk-for-java in…
xinlian12 c5339d3
Merge branch 'upstream-main' into fix/issue-45521-custom-item-seriali…
xinlian12 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
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
467 changes: 456 additions & 11 deletions
467
sdk/cosmos/azure-cosmos-tests/src/test/java/com/azure/cosmos/CosmosItemSerializerTest.java
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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.
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.
Uh oh!
There was an error while loading. Please reload this page.