Skip to content

Conversation

@wu-hui
Copy link
Contributor

@wu-hui wu-hui commented Jan 26, 2026

  1. Removed implicit exists conditions on aggregate fields
  2. Setup integration tests against enterprise database
  3. Audit of integration tests and some tests are skipped for now and some tests are explicitly validating different behaviors between standard and enterprise

@wu-hui wu-hui requested review from a team as code owners January 26, 2026 21:56
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: firestore Issues related to the googleapis/java-firestore API. labels Jan 26, 2026
@wu-hui wu-hui force-pushed the push-qrzkmqzsuuot branch from 407b9ca to a4fa9ba Compare January 26, 2026 21:57
@wu-hui wu-hui changed the title chore: Setup CI against enterprise fix: Setup CI against enterprise Jan 26, 2026
@wu-hui wu-hui force-pushed the push-qrzkmqzsuuot branch from c679897 to 7bee426 Compare January 26, 2026 22:03
@wu-hui wu-hui requested review from MarkDuckworth and removed request for a team January 30, 2026 18:13
Copy link
Contributor

@MarkDuckworth MarkDuckworth left a comment

Choose a reason for hiding this comment

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

Approved with suggestions.

// This is somewhat surprising because the pipeline did ask specifically for genre not
// equal to null,
// however at the later distinct stage, UNSET is grouped as null and thus null appears
// in the result.
Copy link
Contributor

Choose a reason for hiding this comment

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

+1. That is surprising.

.select(
field("rating").equal(nullValue()).as("ratingIsNull"),
field("rating").equal(Double.NaN).as("ratingIsNaN"),
// arrayGet("title", 0) evaluates to UNSET
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this intentionally left in?

"__id1_",
"_id1__",
"a");
// TODO: SDK now implements stardard backend order. We need to change it to Enterprise order
Copy link
Contributor

Choose a reason for hiding this comment

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

Just an idea. Why not make this sort order configurable? If it was a big enough deal to fix for standard edition last year, maybe we should still support the standard behavior with a config option.

@@ -141,7 +141,8 @@ public void aggregateErrorMessageIfIndexIsMissing() throws Exception {
assumeFalse(
"Skip this test when running against the emulator because it does not require composite"
+ " index creation.",
Copy link
Contributor

Choose a reason for hiding this comment

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

This comment may need updating to match the new behavior.

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 googleapis/java-firestore API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants