Skip to content

Commit

Permalink
clear cache
Browse files Browse the repository at this point in the history
  • Loading branch information
rxin committed Aug 5, 2017
1 parent a09e502 commit 861f255
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import org.apache.spark.sql.catalyst.TableIdentifier
import org.apache.spark.sql.catalyst.analysis.NoSuchTableException
import org.apache.spark.sql.catalyst.plans.QueryPlan
import org.apache.spark.sql.catalyst.plans.logical.LogicalPlan
import org.apache.spark.sql.execution.SQLExecution

case class CacheTableCommand(
tableIdent: TableIdentifier,
Expand Down Expand Up @@ -73,4 +72,7 @@ case class ClearCacheCommand() extends RunnableCommand {
sparkSession.catalog.clearCache()
Seq.empty[Row]
}

/** [[org.apache.spark.sql.catalyst.trees.TreeNode.makeCopy()]] does not support 0-arg ctor. */
override def makeCopy(newArgs: Array[AnyRef]): ClearCacheCommand = ClearCacheCommand()
}

0 comments on commit 861f255

Please sign in to comment.