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

Sort the JSON keys alphabetically before saving to ensure consistent order #157

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

eigenraven
Copy link
Member

Previously they were based off the HashMap key iteration order, which cannot be guaranteed to stay the same across systems and Java versions.

Tested in dev, and it seems to sort the keys alphabetically with no errors in the BQ dev instance.

@eigenraven eigenraven requested a review from a team January 2, 2025 13:28
@eigenraven eigenraven self-assigned this Jan 2, 2025
@eigenraven eigenraven merged commit 8fe5f06 into master Jan 2, 2025
1 check passed
@eigenraven eigenraven deleted the raven/sort-bq-keys branch January 2, 2025 13:32
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.

2 participants