Skip to content

FIX: sort strings in UTF-8 encoded byte order#1967

Merged
milaGGL merged 11 commits intomainfrom
mila/string-uses-byte-comparison
Jan 15, 2025
Merged

FIX: sort strings in UTF-8 encoded byte order#1967
milaGGL merged 11 commits intomainfrom
mila/string-uses-byte-comparison

Conversation

@milaGGL
Copy link
Copy Markdown
Contributor

@milaGGL milaGGL commented Jan 6, 2025

Strings should be sorted in UTF-8 encoded byte order. Public document: https://cloud.google.com/firestore/docs/concepts/data-types#data_types

SDK sorts strings using built in comparator method, which sorts lexicographically, and leads to mismatch between server and sdk when special characters are present. This PR fixes the string order mismatches on document field, map key, and document key.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: firestore Issues related to the googleapis/java-firestore API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants