HyukjinKwon commented on a change in pull request #28383:
URL: https://github.com/apache/spark/pull/28383#discussion_r418408328
##########
File path:
sql/core/src/main/scala/org/apache/spark/sql/execution/OptimizeMetadataOnlyQuery.scala
##########
@@ -119,6 +119,10 @@ case class OptimizeMetadataOnlyQuery(catalog:
SessionCatalog) extends Rule[Logic
}
}
+ if
(normalizedFilters.exists(_.find(_.isInstanceOf[Unevaluable]).isDefined)) {
+ return child
+ }
Review comment:
Why don't you just filter out subquerties consistently with other
normalized filters, by
`normalizedFilters.filterNot(SubqueryExpression.hasSubquery)`?
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]