Skip to content

Commit

Permalink
make double boolean miss in jsonRDD compatibleType
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-wang committed Sep 4, 2014
1 parent c619f0a commit ef6f986
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ private[sql] object JsonRDD extends Logging {
if (returnType.isDefined) {
returnType.get
} else {
// t1 or t2 is a StructType, ArrayType, or an unexpected type.
// t1 or t2 is a StructType, ArrayType, BooleanType, or an unexpected type.
(t1, t2) match {
case (other: DataType, NullType) => other
case (NullType, other: DataType) => other
Expand All @@ -155,6 +155,7 @@ private[sql] object JsonRDD extends Logging {
ArrayType(compatibleType(elementType1, elementType2), containsNull1 || containsNull2)
// TODO: We should use JsonObjectStringType to mark that values of field will be
// strings and every string is a Json object.
case (BooleanType, BooleanType) => BooleanType
case (_, _) => StringType
}
}
Expand Down

0 comments on commit ef6f986

Please sign in to comment.