Github user dongjoon-hyun commented on the issue:
https://github.com/apache/spark/pull/15868
Sorry for late response, @gatorsmile and @srowen .
---
> However, when users use the DataFrameWriter, this is not available.
Maybe, in the future, we can add another option parameter (e.g., explain) for
outputting the query plan? This is a low priority issue.
Do you mean to print out the query plan of `df` of `DataFrameWriter` right?
* It's possible, but it should be done by some API like `save` instead of
`option`.
* For the `save` operation, it makes another plan like
`InsertIntoHadoopFsRelationCommand` or `foreachPartition` in JDBCUtils. So, it
looks not easy to print out the whole logic.
---
> why not just let the user repartition the DataFrame if desired?
Yes. I asked the same question in the JIRA issue. But, the original demand
of this issue is a **pure** SQL-based approach. We cannot call `repartition` in
SQL language environment.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]