-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Firestore: Add support for IN Queries #5803
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
Conversation
thebrianchen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just double checking, do we need any serialization/deserialization tests for the java sdk?
otherwise, LGTM
We create the Proto directly via the somewhat hidden |
|
@schmidt-sebastian Can we rebase this and get it fixed up to merge now that the protos are available as of #6479? |
|
We can probably launch this as soon as next week. I will rebase the PR on Monday. |
Codecov Report
@@ Coverage Diff @@
## master #5803 +/- ##
============================================
+ Coverage 46.06% 46.35% +0.28%
- Complexity 28002 28021 +19
============================================
Files 2613 2613
Lines 287940 288087 +147
Branches 32912 33778 +866
============================================
+ Hits 132641 133531 +890
- Misses 144230 144312 +82
+ Partials 11069 10244 -825
Continue to review full report at Codecov.
|
|
@schmidt-sebastian The two new integration tests are failing with assertion errors. Does the integration test project need to be given explicit access for these to pass? |
No, they just have never been run and are buggy. I am updating them right now, and will also fix one incompatibility with Java 7 that we just noticed on Android. |
|
I updated the PR, it should now be in a good state. At first, we wanted to add a varargs method, but we noticed that it break when a user calls Query.whereIn(field, null) since Java 7 picks the wrong overload ( |
396ff8c to
080e7e2
Compare
080e7e2 to
5ea5dbd
Compare
BenWhitehead
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like there is a compiler error due to in incorrect variable name
[ERROR] /tmp/src/google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java:[632,85] cannot find symbol
[ERROR] symbol: variable value
[ERROR] location: class com.google.cloud.firestore.Query
google-cloud-clients/google-cloud-firestore/src/main/java/com/google/cloud/firestore/Query.java
Outdated
Show resolved
Hide resolved
…google/cloud/firestore/Query.java Co-Authored-By: BenWhitehead <BenWhitehead@users.noreply.github.com>
This adds support for Firestore's new IN and ARRAY_CONTAINS_ANY queries.
This can not yet be merged:
This PR is meant to be a reference for other languages.
Port of googleapis/nodejs-firestore#715