Skip to content

Conversation

@chelsea-lin
Copy link
Contributor

Update remap_variables to explicitly assign remapped children for JoinNode and InNode. This prevents KeyError or incorrect node reuse in self-join scenarios where identical child nodes must be remapped to unique tree branches. Additionally, explicitly remap join conditions to ensure they reference the correct child-specific column IDs.

Includes a unit test verifying stability and correctness for self-joins.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Feb 10, 2026
Update remap_variables to explicitly assign remapped children for JoinNode and InNode. This prevents KeyError or incorrect node reuse in self-join scenarios where identical child nodes must be remapped to unique tree branches. Additionally, explicitly remap join conditions to ensure they reference the correct child-specific column IDs.

Includes a unit test verifying stability and correctness for self-joins.
@chelsea-lin chelsea-lin marked this pull request as ready for review February 10, 2026 00:07
@chelsea-lin chelsea-lin requested review from a team as code owners February 10, 2026 00:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants