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

Query correctly handles different language cultures #567

Merged
merged 6 commits into from
Jul 18, 2019

Conversation

j82w
Copy link
Contributor

@j82w j82w commented Jul 17, 2019

Pull Request Template

Description

The query pipeline was using the local culture settings to parse the JSON. Cosmos stores the JSON as invariant culture. This would cause query parsing to fail and prevent the user from getting the results. The JSON navigator, reader, and writer are updated to always use invariant culture for parsing now.

Type of change

Please delete options that are not relevant.

  • 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

Closing issues

Put closes #542

…os always stores JSON as InvariantCulture. This fixes a bug where if the user machine is set to French it will fail on parsing a double from Cosmos since Cosmos return InvariantCulture, but local parsing was using French culture.
@j82w j82w added bug Something isn't working QUERY labels Jul 17, 2019
@j82w j82w self-assigned this Jul 17, 2019
bchong95
bchong95 previously approved these changes Jul 17, 2019
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.

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working QUERY
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Query fails with different CultureInfo
3 participants