Skip to content

Commit

Permalink
fix HiveCompatibilitySuite test failure
Browse files Browse the repository at this point in the history
  • Loading branch information
scwf committed Jan 7, 2015
1 parent 8dfbf7a commit d02547f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ private[sql] class DDLParser extends StandardTokenParsers with PackratParsers wi
}

protected lazy val structType: Parser[DataType] =
STRUCT ~> "<" ~> repsep(structField, ",") <~ ">" ^^ {
case fields => new StructType(fields)
}
(STRUCT ~> "<" ~> repsep(structField, ",") <~ ">" ^^ {
case fields => new StructType(fields)
}) |
(STRUCT ~> "<>" ^^ {
case fields => new StructType(Nil)
})

private[sql] lazy val dataType: Parser[DataType] =
arrayType |
Expand Down

0 comments on commit d02547f

Please sign in to comment.