File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ object ScalaReflection {
8686 }
8787
8888 def typeOfObject : PartialFunction [Any , DataType ] = {
89- // The type of the can be determined without ambiguity.
89+ // The data type can be determined without ambiguity.
9090 case obj : BooleanType .JvmType => BooleanType
9191 case obj : BinaryType .JvmType => BinaryType
9292 case obj : StringType .JvmType => StringType
@@ -99,10 +99,10 @@ object ScalaReflection {
9999 case obj : DecimalType .JvmType => DecimalType
100100 case obj : TimestampType .JvmType => TimestampType
101101 case null => NullType
102- // There is no obvious mapping from the type of the given object to a Catalyst data type.
103- // A user should provide his/her specific rules (in a user-defined PartialFunction) to infer
104- // the Catalyst data type for other types of objects and then compose the user-defined
105- // PartialFunction with this one.
102+ // For other cases, there is no obvious mapping from the type of the given object to a
103+ // Catalyst data type. A user should provide his/her specific rules
104+ // (in a user-defined PartialFunction) to infer the Catalyst data type for other types of
105+ // objects and then compose the user-defined PartialFunction with this one.
106106 }
107107
108108 implicit class CaseClassRelation [A <: Product : TypeTag ](data : Seq [A ]) {
You can’t perform that action at this time.
0 commit comments