wangyum commented on code in PR #47998:
URL: https://github.com/apache/spark/pull/47998#discussion_r1976217724
##########
sql/hive/src/test/scala/org/apache/spark/sql/hive/TestHiveSuite.scala:
##########
@@ -47,4 +47,19 @@ class TestHiveSuite extends TestHiveSingleton with
SQLTestUtils {
test("SPARK-15887: hive-site.xml should be loaded") {
assert(hiveClient.getConf("hive.in.test", "") == "true")
}
+
+ test("SPARK-49507: Fix Expected only partition pruning predicates
exception") {
+ withSQLConf(SQLConf.HIVE_METASTORE_PARTITION_PRUNING_FAST_FALLBACK.key ->
"true") {
+ sql(s"""CREATE TABLE t (ID BIGINT, DT STRING)
+ |STORED AS PARQUET
+ |PARTITIONED BY (DT)
+ |""".stripMargin)
+ sql(s"""
+ |INSERT INTO TABLE t SELECT 1, '20240820'
+ |""".stripMargin)
+ checkAnswer(
+ sql("SELECT * FROM t WHERE dt=20240820"),
+ Row(1, "20240820") :: Nil)
Review Comment:
Why is there a issue with `dt=20240820`, but no problem with `dt='20240820'`?
--
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]