utkarsh39 commented on a change in pull request #34263:
URL: https://github.com/apache/spark/pull/34263#discussion_r730472806
##########
File path:
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/plans/logical/QueryPlanConstraints.scala
##########
@@ -117,11 +117,30 @@ trait ConstraintHelper {
case _ => scanNullIntolerantAttribute(constraint).map(IsNotNull(_))
}
+ private def isLeafExtractValue(e: ExtractValue): Boolean = {
+ e.children.map(c => c.isInstanceOf[Attribute] ||
c.isInstanceOf[Literal]).forall(_ == true)
Review comment:
Sorry for my ignorance, this makes sense. I updated the PR
--
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]