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

fix(firestore): Enable '!=' operator for 'nil' and 'NaN'; correct handling of '!= nil' filters #11639 #11649

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sanbiv
Copy link

@sanbiv sanbiv commented Feb 24, 2025

  • Resolved invalid results for '!= nil' queries: Corrected the logic to ensure that queries using '!= nil' return valid results.
  • Enabled '!= NaN' queries: Modified the query parser to support '!= NaN' conditions.
  • Fixed test expecting identical results for '== null' and '!= null': Updated the test to accurately reflect the differing expected outcomes for these queries.
  • Added test for '!= NaN' query: Introduced a new test case to verify the correct handling of '!= NaN' queries.

@sanbiv sanbiv requested review from a team as code owners February 24, 2025 22:52
@product-auto-label product-auto-label bot added the api: firestore Issues related to the Firestore API. label Feb 24, 2025
@bhshkh bhshkh enabled auto-merge (squash) March 4, 2025 19:40
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 Firestore API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

firestore: Query with '!=' operator for nil/NaN returns incorrect results
2 participants