We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dfbf7a commit d02547fCopy full SHA for d02547f
sql/core/src/main/scala/org/apache/spark/sql/sources/ddl.scala
@@ -161,9 +161,12 @@ private[sql] class DDLParser extends StandardTokenParsers with PackratParsers wi
161
}
162
163
protected lazy val structType: Parser[DataType] =
164
- STRUCT ~> "<" ~> repsep(structField, ",") <~ ">" ^^ {
165
- case fields => new StructType(fields)
166
- }
+ (STRUCT ~> "<" ~> repsep(structField, ",") <~ ">" ^^ {
+ case fields => new StructType(fields)
+ }) |
167
+ (STRUCT ~> "<>" ^^ {
168
+ case fields => new StructType(Nil)
169
+ })
170
171
private[sql] lazy val dataType: Parser[DataType] =
172
arrayType |
0 commit comments