-
Notifications
You must be signed in to change notification settings - Fork 35
Add support for saving query plans #212
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
Signed-off-by: Jihoon Son <[email protected]>
zpuller
left a comment
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.
LGTM but one question about duplicate code (maybe we could address it in a separate PR if we want)
gerashegalov
left a comment
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.
LGTM
nds/nds_power.py
Outdated
| ensure_valid_column_names(df).write.format(output_format).mode('overwrite').save( | ||
| output_path + '/' + query_name) | ||
| if save_plan_path: | ||
| subprocess.run(f"mkdir -p {save_plan_path}", shell=True) |
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.
nit: consider https://docs.python.org/3.12/library/os.html#os.makedirs instead of forking shell commands
|
@gerashegalov @zpuller thanks for the review |
This PR introduces three new configs to save query plans using the benchmark script.