Skip to content
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

Is there a way to see a query plan? #2481

Open
geekodour opened this issue May 3, 2024 · 3 comments
Open

Is there a way to see a query plan? #2481

geekodour opened this issue May 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@geekodour
Copy link

geekodour commented May 3, 2024

Description

See this blogpost: https://salim-sayed.medium.com/spark-delta-lake-merge-slowness-due-to-skewed-partitions-f212285bd04f
It shows an example of the Physical plan

Use Case
I am trying to debug a slow merge while using delta-rs via polars and I am not sure how should I access the query plan. Is it something that's accessible?

@geekodour geekodour added the enhancement New feature or request label May 3, 2024
@geekodour
Copy link
Author

Another example: https://kb.databricks.com/delta/delta-merge-into

Think this is more of a pyarrow question?

@ion-elgreco
Copy link
Collaborator

Not really at the moment. You could modify the delta-rs code to return/dbg the plan.

Are you merging on the full table or a set of partitions?

@echai58
Copy link

echai58 commented May 6, 2024

If you set RUST_LOG=debug datafusion will print out the full optimized/unoptimized query plans, if that's what you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants