Github user scwf commented on the pull request:

    https://github.com/apache/spark/pull/5247#issuecomment-92191089
  
    Hi @marmbrus,
    first i think this change is not doing query planning because 
    1 query planning is to convert a logical plan to spark plan (correct me if 
i misunderstanding)
    2 here i make a new logical node from RunnableCommand to LocalRelation
    
     second, your suggestion is really useful, how about change as following:
    1 add a rule to optimizer to transform from RunnableCommand to LocalRelation
    2 remove ExecutedCommand, since 
    ```
    case logical.LocalRelation(output, data) =>
            LocalTableScan(output, data) :: Nil
    ```
    will transform LocalRelation to LocalTableScan



---
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]

Reply via email to