HyukjinKwon commented on a change in pull request #28383:
URL: https://github.com/apache/spark/pull/28383#discussion_r418415403
##########
File path:
sql/core/src/test/scala/org/apache/spark/sql/execution/OptimizeMetadataOnlyQuerySuite.scala
##########
@@ -150,4 +150,30 @@ class OptimizeMetadataOnlyQuerySuite extends QueryTest
with SharedSparkSession {
}
}
}
+
+ test("SPARK-31590 The filter used by Metadata-only queries should not have
Unevaluable") {
+ withTable("test_tbl") {
+ withSQLConf(OPTIMIZER_METADATA_ONLY.key -> "true") {
+ sql("CREATE TABLE test_tbl (a INT,d STRING,h STRING) USING PARQUET
PARTITIONED BY (d ,h)")
Review comment:
Can you make the test case minimised, and consistent with the style used
in this file? I think you can create the partitioned table via
`write.parquetby` syntax instead of relying on the SQL syntax here.
----------------------------------------------------------------
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]