Github user scwf commented on the pull request:
https://github.com/apache/spark/pull/5247#issuecomment-94615111
Revert to my first commit version, reconstruct the Logicalplan of command
as LocalRelation in DataFrame since
1 IMO the logicalPlan of DF of command should be LocalRelation from syntax,
such that `isLocal` of the cmd's `DataFrame` can return true
(https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/DataFrame.scala#L298)
2 we can not transform from RunnableCommand to LocalTableScan in planner
directly since that will leads to cmd executed twice
---
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]