[ 
https://issues.apache.org/jira/browse/SPARK-2594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14120866#comment-14120866
 ] 

Michael Armbrust commented on SPARK-2594:
-----------------------------------------

Seems pretty reasonable.  A few notes:
 - I'd call the operators CacheTableAsSelect as AddCacheTable sounds more like 
you are caching a base table, not some arbitrary query.
 - You'll also need to create a new physical operator (SparkPlan) to do the 
work instead of doing the work in the planner.  This operator will likely want 
to inherit from Command.
 - There a question of what the result of running this command is (i.e. the 
number of rows cached? an empty result?)
 - Is the caching eager (i'd vote yes probably?)

> Add CACHE TABLE <name> AS SELECT ...
> ------------------------------------
>
>                 Key: SPARK-2594
>                 URL: https://issues.apache.org/jira/browse/SPARK-2594
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>            Reporter: Michael Armbrust
>            Priority: Critical
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to