You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ma...@apache.org on 2014/09/05 03:46:17 UTC
git commit: [SPARK-3310][SQL] Directly use currentTable without
unnecessary implicit conversion
Repository: spark
Updated Branches:
refs/heads/master 90b17a70c -> 3eb6ef316
[SPARK-3310][SQL] Directly use currentTable without unnecessary implicit conversion
We can directly use currentTable there without unnecessary implicit conversion.
Author: Liang-Chi Hsieh <vi...@gmail.com>
Closes #2203 from viirya/direct_use_inmemoryrelation and squashes the following commits:
4741d02 [Liang-Chi Hsieh] Merge remote-tracking branch 'upstream/master' into direct_use_inmemoryrelation
b671f67 [Liang-Chi Hsieh] Can directly use currentTable there without unnecessary implicit conversion.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/3eb6ef31
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/3eb6ef31
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/3eb6ef31
Branch: refs/heads/master
Commit: 3eb6ef316c2a5ee43d5ecfcf9f10c2d7adc6b819
Parents: 90b17a7
Author: Liang-Chi Hsieh <vi...@gmail.com>
Authored: Thu Sep 4 18:46:09 2014 -0700
Committer: Michael Armbrust <mi...@databricks.com>
Committed: Thu Sep 4 18:46:09 2014 -0700
----------------------------------------------------------------------
sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/3eb6ef31/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
----------------------------------------------------------------------
diff --git a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
index a75af94..5acb45c 100644
--- a/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
+++ b/sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala
@@ -272,7 +272,7 @@ class SQLContext(@transient val sparkContext: SparkContext)
val currentTable = table(tableName).queryExecution.analyzed
val asInMemoryRelation = currentTable match {
case _: InMemoryRelation =>
- currentTable.logicalPlan
+ currentTable
case _ =>
InMemoryRelation(useCompression, columnBatchSize, executePlan(currentTable).executedPlan)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org