Github user liancheng commented on the pull request:
https://github.com/apache/spark/pull/948#issuecomment-45570350
@marmbrus @concretevitamin While working on the cache table SQL command and
reviewing PR #956, I think this PR may make both changes cleaner, so I tried to
finish this one first. For example, we won't need
[`processCmd`](https://github.com/apache/spark/pull/956/files#diff-ff50aea397a607b79df9bec6f2a841dbR255)
and
[`eagerlyProcess`](https://github.com/apache/spark/pull/956/files#diff-131c27c6a1f59770d738b11f2a4755ecR274)
anymore since all commands and insertions are eagerly executed in a unified
way.
Instead of `QueryExecution`, I factored the duplicated code into
`SchemaRDDLike` to make the change cleaner and more straightforward (after some
experiments, it turned out that moving code to `QueryExecution` complicates
things a lot).
---
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.
---