Skip to content

Conversation

@myronmarston
Copy link
Collaborator

When there's a single id set, there's some short circuiting that goes in in the optimized implementation. That causes it to NOT add unnecessarliy to requested_fields. However, our comparison implementation was always adding a requested field, and consequently the payloads would be different in this case. That would trigger a log message indicating differences when there are in fact none.

To fix this, we only need to add to requested_fields if id_sets.size > 1.

When there's a single id set, there's some short circuiting that goes in
in the optimized implementation. That causes it to NOT add unnecessarliy
to `requested_fields`. However, our comparison implementation was always
adding a requested field, and consequently the payloads would be different
in this case. That would trigger a log message indicating differences
when there are in fact none.

To fix this, we only need to add to `requested_fields` if `id_sets.size > 1`.
@CLAassistant
Copy link

CLAassistant commented Apr 2, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@BrianSigafoos-SQ BrianSigafoos-SQ left a comment

Choose a reason for hiding this comment

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

LGTM

@myronmarston myronmarston merged commit a38b822 into main Apr 2, 2025
20 of 21 checks passed
@myronmarston myronmarston deleted the myron/nested-relationship-source/comparison-of-1-id-set branch April 2, 2025 20:44
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.

4 participants