Skip to content

Commit c6241de

Browse files
committed
minor code clean
1 parent 595b417 commit c6241de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/core/src/main/scala/org/apache/spark/sql/json/JsonRDD.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ private[sql] object JsonRDD extends Logging {
125125
* Returns the most general data type for two given data types.
126126
*/
127127
private[json] def compatibleType(t1: DataType, t2: DataType): DataType = {
128-
HiveTypeCoercion.findTightestCommonType(t1,t2) match {
128+
HiveTypeCoercion.findTightestCommonType(t1, t2) match {
129129
case Some(commonType) => commonType
130130
case None =>
131-
// t1 or t2 is a StructType, ArrayType, BooleanType, or an unexpected type.
131+
// t1 or t2 is a StructType, ArrayType, or an unexpected type.
132132
(t1, t2) match {
133133
case (other: DataType, NullType) => other
134134
case (NullType, other: DataType) => other

0 commit comments

Comments
 (0)