Skip to content

Commit 8676af7

Browse files
committed
remove more self type
1 parent 1017908 commit 8676af7

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ import org.apache.spark.sql.types._
4343
*
4444
* See [[Substring]] for an example.
4545
*/
46-
abstract class Expression extends TreeNode[Expression] with Product {
46+
abstract class Expression extends TreeNode[Expression] {
4747

4848
/**
4949
* Returns true when an expression is a candidate for static evaluation before the query is

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/math.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ abstract class UnaryMathExpression(f: Double => Double, name: String)
7777
}
7878

7979
abstract class UnaryLogExpression(f: Double => Double, name: String)
80-
extends UnaryMathExpression(f, name) { self: Product =>
80+
extends UnaryMathExpression(f, name) {
8181

8282
// values less than or equal to yAsymptote eval to null in Hive, instead of NaN or -Infinity
8383
protected val yAsymptote: Double = 0.0

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/QueryPlan.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import org.apache.spark.sql.catalyst.trees.TreeNode
2222
import org.apache.spark.sql.types.{ArrayType, DataType, StructField, StructType}
2323

2424
abstract class QueryPlan[PlanType <: TreeNode[PlanType]] extends TreeNode[PlanType] {
25-
self: PlanType with Product =>
25+
self: PlanType =>
2626

2727
def output: Seq[Attribute]
2828

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/LogicalPlan.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import org.apache.spark.sql.catalyst.plans.QueryPlan
2525
import org.apache.spark.sql.catalyst.trees.TreeNode
2626

2727

28-
abstract class LogicalPlan extends QueryPlan[LogicalPlan] with Logging with Product{
28+
abstract class LogicalPlan extends QueryPlan[LogicalPlan] with Logging {
2929

3030
/**
3131
* Computes [[Statistics]] for this plan. The default implementation assumes the output

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/trees/TreeNode.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ object CurrentOrigin {
5454
}
5555
}
5656

57-
abstract class TreeNode[BaseType <: TreeNode[BaseType]] {
58-
self: BaseType with Product =>
57+
abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product {
58+
self: BaseType =>
5959

6060
val origin: Origin = CurrentOrigin.get
6161

sql/core/src/main/scala/org/apache/spark/sql/execution/SparkPlan.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ object SparkPlan {
3939
* :: DeveloperApi ::
4040
*/
4141
@DeveloperApi
42-
abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Product with Serializable {
42+
abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Serializable {
4343

4444
/**
4545
* A handle to the SQL Context that was used to create this plan. Since many operators need

0 commit comments

Comments
 (0)