spark-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marmbrus <>
Subject [GitHub] spark pull request: [SPARK-2594][SQL] Add CACHE TABLE <name> AS SE...
Date Sat, 13 Sep 2014 18:33:16 GMT
Github user marmbrus commented on a diff in the pull request:
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/SqlParser.scala ---
    @@ -181,6 +182,12 @@ class SqlParser extends StandardTokenParsers with PackratParsers
             val overwrite: Boolean = o.getOrElse("") == "OVERWRITE"
             InsertIntoTable(r, Map[String, Option[String]](), s, overwrite)
    +  protected lazy val addCache: Parser[LogicalPlan] =
    +    ADD ~ CACHE ~ TABLE ~> ident ~ AS ~ select <~ opt(";") ^^ {
    --- End diff --
    Sorry for the confusion, I had intended the syntax to be `CACHE TABLE AS SELECT ...` to
match `CREATE TABLE AS SELECT`.  The "Add", was just about adding support to Spark SQL.

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 or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message