Skip to content

Conversation

@jihoonson
Copy link
Collaborator

@jihoonson jihoonson commented Apr 18, 2025

This PR introduces three new configs to save query plans using the benchmark script.

  --save_plan_path SAVE_PLAN_PATH
                        Save the execution plan of each query to the specified file. If --skip_execution is specified, the execution plan will be saved without executing the
                        query.
  --plan_types PLAN_TYPES
                        Comma separated list of plan types to save. e.g. "physical, logical". Default is "logical".
  --skip_execution      Skip the execution of the queries. This can be used in conjunction with --save_plan_path to only save the execution plans without running the queries.

Signed-off-by: Jihoon Son <[email protected]>
@jihoonson jihoonson marked this pull request as ready for review April 24, 2025 20:49
Copy link

@zpuller zpuller left a 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
gerashegalov previously approved these changes Apr 29, 2025
Copy link
Collaborator

@gerashegalov gerashegalov left a 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)
Copy link
Collaborator

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

@jihoonson
Copy link
Collaborator Author

@gerashegalov @zpuller thanks for the review

@jihoonson jihoonson merged commit a786d21 into NVIDIA:dev Apr 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants