Skip to content

Conversation

@chelsea-lin
Copy link
Contributor

Fixes internal issue 445774480🦕

@product-auto-label product-auto-label bot added size: l Pull request size is large. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Nov 13, 2025
@chelsea-lin chelsea-lin marked this pull request as ready for review November 13, 2025 23:30
@chelsea-lin chelsea-lin requested review from a team as code owners November 13, 2025 23:30
@chelsea-lin chelsea-lin requested a review from sycai November 13, 2025 23:30
@chelsea-lin chelsea-lin marked this pull request as draft November 14, 2025 00:37
@chelsea-lin chelsea-lin force-pushed the main_chelsealin_cut branch 2 times, most recently from ce41321 to 65a8c11 Compare November 17, 2025 22:17
Comment on lines 231 to 256
if op.right:
value = sge.Struct(
expressions=[
sge.PropertyEQ(
this=sge.Identifier(this="left_exclusive", quoted=True),
expression=left,
),
sge.PropertyEQ(
this=sge.Identifier(this="right_inclusive", quoted=True),
expression=right,
),
]
)
else:
value = sge.Struct(
expressions=[
sge.PropertyEQ(
this=sge.Identifier(this="left_inclusive", quoted=True),
expression=left,
),
sge.PropertyEQ(
this=sge.Identifier(this="right_exclusive", quoted=True),
expression=right,
),
]
)
Copy link
Contributor

Choose a reason for hiding this comment

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

code suggestion:

if op.right:
    left_identifier = sge.Identifier(this="left_exclusive", quoted=True)
    right_identifier = sge.Identifier(this="right_inclusive", quoted=True)
else:
    left_identifier = sge.Identifier(this="left_inclusive", quoted=True)
    right_identifier = sge.Identifier(this="right_exclusive", quoted=True)

then you can construct a value with those local variables, just like what you have between line 167-172

@chelsea-lin chelsea-lin added the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 17, 2025
@bigframes-bot bigframes-bot removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Nov 17, 2025
@chelsea-lin chelsea-lin requested a review from sycai November 19, 2025 22:09
@chelsea-lin chelsea-lin marked this pull request as ready for review November 19, 2025 22:09
@chelsea-lin chelsea-lin merged commit c35e21f into main Nov 20, 2025
19 of 24 checks passed
@chelsea-lin chelsea-lin deleted the main_chelsealin_cut branch November 20, 2025 19:17
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: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants