uros-b commented on code in PR #56831:
URL: https://github.com/apache/spark/pull/56831#discussion_r3485897355
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/package.scala:
##########
@@ -100,6 +100,13 @@ package object expressions {
// to an array.
@transient private lazy val attrsArray = attrs.toArray
+ // Attributes with a null name (e.g. produced from a StructField built
with a null name via
Review Comment:
Please check: AttributeReference.hashCode calls name.hashCode() and could
also NPE if a null-named attribute were used in a hash-based collection. If
this is a real issue as well, please address it separetely.
--
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]