-
Notifications
You must be signed in to change notification settings - Fork 48
refactor: Factor out exectuor.head method into cache and execute slice #1676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
e856c9d
to
0732b30
Compare
bigframes/core/blocks.py
Outdated
@@ -69,6 +69,7 @@ | |||
import bigframes.exceptions as bfe | |||
import bigframes.operations as ops | |||
import bigframes.operations.aggregations as agg_ops | |||
from bigframes.session import executor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shall we use from bigfreames.session import executor as executors
so that its name does not conflict with your local variable?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
return | ||
if use_session: | ||
# First, see if we can reuse the existing cache | ||
# TODO: Provide feedback to user on whether new caching action was deemed necessary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can open bugs to track these TODOs? go/todo-style
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
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:
Fixes #<issue_number_goes_here> 🦕