Skip to content

Conversation

@TrevorBergeron
Copy link
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕

@TrevorBergeron TrevorBergeron requested review from a team as code owners October 1, 2024 00:45
@TrevorBergeron TrevorBergeron requested a review from sycai October 1, 2024 00:45
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Oct 1, 2024
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. label Oct 1, 2024
)
execs_post = metrics.execution_count
# we test this property on this method in particular as compilation
# is non-deterministic and won't use the query cache as implemented
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: I would also document that this is to check that the execution was performed only once

Copy link
Contributor Author

Choose a reason for hiding this comment

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

reorganized a bit to make clear that only care about executions from the to_pandas() invocation.

metrics = session._metrics
df = bpd.DataFrame(data, session=session)
pd_df = df.to_pandas()
execs_pre = metrics.execution_count
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: put this line right below line 4831 or move line 4831 above this line, just to keep together statements that are related

@TrevorBergeron TrevorBergeron enabled auto-merge (squash) October 1, 2024 16:19
@TrevorBergeron TrevorBergeron merged commit 4992cc2 into main Oct 1, 2024
@TrevorBergeron TrevorBergeron deleted the double_exec_fix branch October 1, 2024 17:12
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: s Pull request size is small.

3 participants