Skip to content

Commit

Permalink
Minor refactoring for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
liancheng committed Aug 22, 2015
1 parent 15cd105 commit 74802cd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ private[parquet] class CatalystRowConverter(
(parquetRepeatedType, catalystElementType) match {
case (t: PrimitiveType, _) => true
case (t: GroupType, _) if t.getFieldCount > 1 => true
case (t, _) if t.getName == "array" || t.getName == s"${parentName}_tuple" => true
case (t: GroupType, _) if t.getFieldCount == 1 && t.getName == "array" => true
case (t: GroupType, _) if t.getFieldCount == 1 && t.getName == parentName + "_tuple" => true
case (t: GroupType, StructType(Array(f))) if f.name == t.getFieldName(0) => true
case _ => false
}
Expand Down

0 comments on commit 74802cd

Please sign in to comment.