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

Fixed Distinct Encoding Bug #1060

Merged

Conversation

bchong95
Copy link
Contributor

Fixed Distinct Encoding Bug

Description

DISTINCT queries had a bug when encoding unicode characters. Encoding.Utf8.GetBytes was being given the length in utf8 characters instead of the char count of the string.

Type of change

Please delete options that are not relevant.

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

@bchong95 bchong95 requested a review from j82w as a code owner November 27, 2019 20:02
@bchong95 bchong95 self-assigned this Nov 27, 2019
changelog.md Outdated Show resolved Hide resolved
Copy link
Member

@kirankumarkolli kirankumarkolli left a comment

Choose a reason for hiding this comment

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

Waiting for UT

changelog.md Outdated
@@ -30,6 +30,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1036](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1036) Fixed query responses to return null Content if it is a failure
- [#1045](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1045) Added stack trace and innner exception to CosmosException
- [#1050](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1050) Add mocking constructors to TransactionalBatchOperationResult
- [#1060](https://github.com/Azure/azure-cosmos-dotnet-v3/pull/1060) Fixed unicode encoding bug in DISTINCT queries.
Copy link
Contributor

Choose a reason for hiding this comment

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

3.5.0 is shipped please move this up to unreleased

sboshra
sboshra previously approved these changes Dec 4, 2019
@sboshra sboshra merged commit df7faa2 into master Dec 6, 2019
@sboshra sboshra deleted the users/brchon/DistributedQuery/DistinctEncodingBugFix branch December 6, 2019 02:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants