cloud-fan commented on a change in pull request #33213:
URL: https://github.com/apache/spark/pull/33213#discussion_r663754582
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/types/StructType.scala
##########
@@ -372,7 +372,7 @@ case class StructType(fields: Array[StructField]) extends
DataType with Seq[Stru
findField(struct, names, normalizedPath ++ Seq(field.name,
"element"))
case _ =>
- None
+ throw QueryCompilationErrors.invalidFieldName(fieldNames,
normalizedPath)
Review comment:
This is to match
https://github.com/apache/spark/pull/33213/files#diff-583171e935b2dc349378063a5841c5b98b30a2d57ac3743a9eccfe7bffcb8f2aL472
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]