-
Notifications
You must be signed in to change notification settings - Fork 41
feat: optimizations arguments
#1635
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR refactors optimization flag handling in LazyFrame operations by introducing a new helper function forward_old_opt_flags to centralize deprecation handling for old optimization parameters. The changes update the $explain() method to use the new QueryOptFlags object and deprecate individual optimization parameters.
Key Changes:
- Added
forward_old_opt_flags()function to handle deprecated optimization parameters - Refactored
lazyframe__explain()to useQueryOptFlagsobject viaoptimizationsparameter - Updated documentation examples to use
writeLines()instead ofcat()for better output display
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| R/lazyframe-utils.R | Added forward_old_opt_flags() helper function to centralize deprecated parameter handling with validation |
| R/lazyframe-frame.R | Refactored lazyframe__explain() to accept QueryOptFlags object and added engine parameter; updated examples to use writeLines() |
23785a0 to
b605a42
Compare
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.
Pull Request Overview
Copilot reviewed 35 out of 35 changed files in this pull request and generated 7 comments.
|
I'll add some tests tomorrow... |
No description provided.