-
Notifications
You must be signed in to change notification settings - Fork 174
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
fix sql_query_explain.Oracle #1354
Conversation
|
moved query execution from sql_query_explain().Oracle to db_explain.Oracle()
Thanks for your pointers, figuring this out as I go. I don't want to impose, but hope to work through this in the hopes of being able to contribute more frequently. I just submitted something which is hopefully closer to what is intended. Currently |
It seems like the basic problem is that explaining a query plan in Oracle requires two steps — you first use You also seem to have split the single SQL statement into two pieces, only one of which is generated by I think you also need to consider what happens if multiple queries are explained in one session. Won't those plans continue to pile up in the same database? I think it would be useful to consider how you might keep them separate. |
I'll link to the Oracle documentation of the current long term release (19c). The gist of explaining and displaying execution plans in Oracle can be found here. Basically,
Exactly, it doesn't work as a single statement. I see why returning a character vector might be nicer and will submit that shortly. Again,
In theory you could specify a unique value for the Thanks again for your patience and all helpful pointers. |
…d DBMS_XPLAN.DISPLAY and executes those individually in db_explain
Thanks for the explanations! |
@thomashulst thanks so much for this PR! |
Happy to contribute, I learned a lot from it 😊 |
If you're interested in tackling another Oracle-dbplyr issue, I think #750 looks fairly straightforward. |
Fixes #1353
EXPLAIN PLAN FOR
)
inDBMS_XPLAN.DISPLAY()