-
Notifications
You must be signed in to change notification settings - Fork 641
[realppl 1] offline stage/expr #7349
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
base: feat/pipelines
Are you sure you want to change the base?
Conversation
Firebase AI Mock Responses Check
|
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.
Summary of Changes
Hello @wu-hui, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces a foundational new data processing and query framework, known as 'Pipelines', to Firestore. This feature significantly expands the capabilities for server-side data manipulation, allowing users to perform complex transformations, aggregations, and advanced filtering operations that go beyond traditional query limitations. The implementation includes a new expression evaluation engine and ensures compatibility with existing query patterns, providing a flexible and powerful tool for data management.
Highlights
- New Pipelines API: Introduced a powerful new 'Pipelines' API for advanced query and data transformation capabilities within Firestore. This API allows for complex data manipulation and aggregation directly on the server.
- Expanded Query Operations: The new Pipelines API supports a wide array of operations including aggregation (count, sum, average), advanced filtering (logical, comparison, array, string, regex), data transformation (add/remove fields, select, replace), and structural operations (unnest, union).
- Integration with Existing Queries: Existing Firestore Query objects can now be converted into the new Pipeline format, ensuring compatibility and providing a migration path for enhanced functionality.
- Kotlin-based Expression Engine: A new Kotlin-based expression evaluation engine has been implemented to power the Pipelines API, enabling robust and extensible data processing logic.
- Internal Refinements: Significant internal refactoring was performed across various modules, including number comparison helpers, document/field path handling, and value serialization, to support the new pipeline architecture.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
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.
Code Review
This pull request introduces a significant new feature: a Pipeline API for Firestore queries. This provides a more expressive and flexible way to query data, similar to aggregation pipelines in other databases. The changes are extensive, including the new fluent API, the underlying execution logic, a compatibility layer to convert existing Query
objects, and a comprehensive suite of tests. Overall, this is a well-implemented feature. I've identified one critical compatibility issue and a few minor issues in the test files.
firebase-firestore/src/main/java/com/google/firebase/firestore/model/ResourcePath.java
Outdated
Show resolved
Hide resolved
firebase-firestore/src/androidTest/java/com/google/firebase/firestore/PipelineTest.java
Outdated
Show resolved
Hide resolved
firebase-firestore/src/androidTest/java/com/google/firebase/firestore/QueryToPipelineTest.java
Outdated
Show resolved
Hide resolved
Test Results0 tests 0 ✅ 0s ⏱️ Results for commit 537313a. ♻️ This comment has been updated with latest results. |
The public api surface has changed for the subproject firebase-firestore: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
350843c
to
537313a
Compare
The public api surface has changed for the subproject firebase-firestore: Please update the api.txt files for the subprojects being affected by this change by running ./gradlew ${subproject}:generateApiTxtFile. Also perform a major/minor bump accordingly. |
No description provided.