Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import org.apache.spark.sql.types._
*
* See [[Substring]] for an example.
*/
abstract class Expression extends TreeNode[Expression] with Product {
abstract class Expression extends TreeNode[Expression] {

/**
* Returns true when an expression is a candidate for static evaluation before the query is
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ abstract class UnaryMathExpression(f: Double => Double, name: String)
}

abstract class UnaryLogExpression(f: Double => Double, name: String)
extends UnaryMathExpression(f, name) { self: Product =>
extends UnaryMathExpression(f, name) {

// values less than or equal to yAsymptote eval to null in Hive, instead of NaN or -Infinity
protected val yAsymptote: Double = 0.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import org.apache.spark.sql.catalyst.trees.TreeNode
import org.apache.spark.sql.types.{ArrayType, DataType, StructField, StructType}

abstract class QueryPlan[PlanType <: TreeNode[PlanType]] extends TreeNode[PlanType] {
self: PlanType with Product =>
self: PlanType =>

def output: Seq[Attribute]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import org.apache.spark.sql.catalyst.plans.QueryPlan
import org.apache.spark.sql.catalyst.trees.TreeNode


abstract class LogicalPlan extends QueryPlan[LogicalPlan] with Logging with Product{
abstract class LogicalPlan extends QueryPlan[LogicalPlan] with Logging {

/**
* Computes [[Statistics]] for this plan. The default implementation assumes the output
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ object CurrentOrigin {
}
}

abstract class TreeNode[BaseType <: TreeNode[BaseType]] {
self: BaseType with Product =>
abstract class TreeNode[BaseType <: TreeNode[BaseType]] extends Product {
self: BaseType =>

val origin: Origin = CurrentOrigin.get

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object SparkPlan {
* :: DeveloperApi ::
*/
@DeveloperApi
abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Product with Serializable {
abstract class SparkPlan extends QueryPlan[SparkPlan] with Logging with Serializable {

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