Skip to content

Commit

Permalink
[SPARK-3892][SQL] remove redundant type name
Browse files Browse the repository at this point in the history
Author: Daoyuan Wang <daoyuan.wang@intel.com>

Closes apache#2747 from adrian-wang/typename and squashes the following commits:

2824216 [Daoyuan Wang] remove redundant typeName
fbaf340 [Daoyuan Wang] typename
  • Loading branch information
adrian-wang authored and marmbrus committed Oct 13, 2014
1 parent 49bbdcb commit 46db277
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ case object FloatType extends FractionalType {
object ArrayType {
/** Construct a [[ArrayType]] object with the given element type. The `containsNull` is true. */
def apply(elementType: DataType): ArrayType = ArrayType(elementType, true)
def typeName: String = "array"
}

/**
Expand Down Expand Up @@ -395,8 +394,6 @@ case class StructField(name: String, dataType: DataType, nullable: Boolean) {
object StructType {
protected[sql] def fromAttributes(attributes: Seq[Attribute]): StructType =
StructType(attributes.map(a => StructField(a.name, a.dataType, a.nullable)))

def typeName = "struct"
}

case class StructType(fields: Seq[StructField]) extends DataType {
Expand Down Expand Up @@ -459,8 +456,6 @@ object MapType {
*/
def apply(keyType: DataType, valueType: DataType): MapType =
MapType(keyType: DataType, valueType: DataType, true)

def simpleName = "map"
}

/**
Expand Down

0 comments on commit 46db277

Please sign in to comment.