Skip to content

Commit 46db277

Browse files
adrian-wangmarmbrus
authored andcommitted
[SPARK-3892][SQL] remove redundant type name
Author: Daoyuan Wang <[email protected]> Closes #2747 from adrian-wang/typename and squashes the following commits: 2824216 [Daoyuan Wang] remove redundant typeName fbaf340 [Daoyuan Wang] typename
1 parent 49bbdcb commit 46db277

File tree

1 file changed

+0
-5
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/types

1 file changed

+0
-5
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/types/dataTypes.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ case object FloatType extends FractionalType {
349349
object ArrayType {
350350
/** Construct a [[ArrayType]] object with the given element type. The `containsNull` is true. */
351351
def apply(elementType: DataType): ArrayType = ArrayType(elementType, true)
352-
def typeName: String = "array"
353352
}
354353

355354
/**
@@ -395,8 +394,6 @@ case class StructField(name: String, dataType: DataType, nullable: Boolean) {
395394
object StructType {
396395
protected[sql] def fromAttributes(attributes: Seq[Attribute]): StructType =
397396
StructType(attributes.map(a => StructField(a.name, a.dataType, a.nullable)))
398-
399-
def typeName = "struct"
400397
}
401398

402399
case class StructType(fields: Seq[StructField]) extends DataType {
@@ -459,8 +456,6 @@ object MapType {
459456
*/
460457
def apply(keyType: DataType, valueType: DataType): MapType =
461458
MapType(keyType: DataType, valueType: DataType, true)
462-
463-
def simpleName = "map"
464459
}
465460

466461
/**

0 commit comments

Comments
 (0)