maropu commented on a change in pull request #28383:
URL: https://github.com/apache/spark/pull/28383#discussion_r418764874



##########
File path: 
sql/core/src/test/scala/org/apache/spark/sql/execution/OptimizeMetadataOnlyQuerySuite.scala
##########
@@ -103,6 +103,20 @@ class OptimizeMetadataOnlyQuerySuite extends QueryTest 
with SharedSparkSession {
     "select partcol2, min(partcol1) from srcpart where partcol1 = 0 group by 
partcol2",
     "select max(c1) from (select partcol1 + 1 as c1 from srcpart where 
partcol1 = 0) t")
 
+  testMetadataOnly(
+    "SPARK-31590 The filter used by Metadata-only queries should not have 
Unevaluable",
+    """
+      |SELECT partcol1, MAX(partcol2) AS partcol2
+      |FROM srcpart
+      |WHERE partcol1 = (
+      |  SELECT MAX(partcol1)
+      |  FROM srcpart
+      |)
+      |AND partcol2= 'event'

Review comment:
       nit: `AND partcol2 = 'event'`




----------------------------------------------------------------
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:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to