diff options
author | Dongjoon Hyun <dongjoon@apache.org> | 2016-03-16 22:48:58 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2016-03-16 22:48:58 -0700 |
commit | c890c359b1dfb64274d1d0067b1e16d834035f11 (patch) | |
tree | d0c2cd72ef3886cb09e72b59baedad2555b6e928 | |
parent | 7eef2463ade693f8e87ecd913a5adf03b69ac14e (diff) | |
download | spark-c890c359b1dfb64274d1d0067b1e16d834035f11.tar.gz spark-c890c359b1dfb64274d1d0067b1e16d834035f11.tar.bz2 spark-c890c359b1dfb64274d1d0067b1e16d834035f11.zip |
[MINOR][SQL][BUILD] Remove duplicated lines
## What changes were proposed in this pull request?
This PR removes three minor duplicated lines. First one is making the following unreachable code warning.
```
JoinSuite.scala:52: unreachable code
[warn] case j: BroadcastHashJoin => j
```
The other two are just consecutive repetitions in `Seq` of MiMa filters.
## How was this patch tested?
Pass the existing Jenkins test.
Author: Dongjoon Hyun <dongjoon@apache.org>
Closes #11773 from dongjoon-hyun/remove_duplicated_line.
-rw-r--r-- | project/MimaExcludes.scala | 2 | ||||
-rw-r--r-- | sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/project/MimaExcludes.scala b/project/MimaExcludes.scala index ffc6fa0599..6d39282923 100644 --- a/project/MimaExcludes.scala +++ b/project/MimaExcludes.scala @@ -301,13 +301,11 @@ object MimaExcludes { // [SPARK-13244][SQL] Migrates DataFrame to Dataset ProblemFilters.exclude[IncompatibleMethTypeProblem]("org.apache.spark.sql.DataFrameHolder.apply"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.DataFrameHolder.toDF"), - ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.DataFrameHolder.toDF"), ProblemFilters.exclude[IncompatibleMethTypeProblem]("org.apache.spark.sql.DataFrameHolder.copy"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.DataFrameHolder.copy$default$1"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.DataFrameHolder.df$1"), ProblemFilters.exclude[IncompatibleMethTypeProblem]("org.apache.spark.sql.DataFrameHolder.this"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.SQLContext.tables"), - ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.SQLContext.tables"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.SQLContext.sql"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.SQLContext.baseRelationToDataFrame"), ProblemFilters.exclude[IncompatibleResultTypeProblem]("org.apache.spark.sql.SQLContext.table"), diff --git a/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala b/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala index 41919910a9..03d6df8c28 100644 --- a/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala +++ b/sql/core/src/test/scala/org/apache/spark/sql/JoinSuite.scala @@ -49,7 +49,6 @@ class JoinSuite extends QueryTest with SharedSQLContext { case j: BroadcastHashJoin => j case j: CartesianProduct => j case j: BroadcastNestedLoopJoin => j - case j: BroadcastHashJoin => j case j: SortMergeJoin => j } |