Skip to content

feat: add arithmetic expressions#7886

Merged
yvonnep165 merged 6 commits intomainfrom
yvonne/arithmetic-expressions
Mar 11, 2026
Merged

feat: add arithmetic expressions#7886
yvonnep165 merged 6 commits intomainfrom
yvonne/arithmetic-expressions

Conversation

@yvonnep165
Copy link
Copy Markdown
Contributor

Adds support for the arithmetic pipeline expression trunc.
The rand expression was already ported internally. Remove the internal keyword and add an integration test for rand expression

ported from firebase/firebase-js-sdk#9498

@gemini-code-assist
Copy link
Copy Markdown
Contributor

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 by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 9, 2026

📝 PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

@yvonnep165 yvonnep165 requested review from dlarocque and milaGGL March 9, 2026 21:31
@dlarocque
Copy link
Copy Markdown
Contributor

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a 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 successfully introduces support for the rand and trunc arithmetic pipeline expressions. The rand expression, previously internal, has been made public and an integration test has been added. The trunc expression, along with its truncToPrecision variants, has been fully integrated into the API and includes comprehensive test coverage. The api.txt file has been updated to reflect the new public methods and the appropriate @Beta annotations have been applied to new pipeline stages, indicating their experimental status. The CHANGELOG.md has also been updated to document these new features. The changes are well-aligned with the pull request description and demonstrate a clear implementation of the new functionality.

@dlarocque dlarocque self-requested a review March 10, 2026 15:59
dlarocque
dlarocque previously approved these changes Mar 10, 2026
dlarocque
dlarocque previously approved these changes Mar 11, 2026
Copy link
Copy Markdown
Contributor

@dlarocque dlarocque left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this repo automatically dismisses reviews after changes are made :(

Approving again

Copy link
Copy Markdown
Contributor

@milaGGL milaGGL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@yvonnep165 yvonnep165 merged commit f4c17f8 into main Mar 11, 2026
27 of 29 checks passed
@yvonnep165 yvonnep165 deleted the yvonne/arithmetic-expressions branch March 11, 2026 20:28
@github-actions github-actions bot mentioned this pull request Mar 12, 2026
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.

3 participants