wangyum commented on code in PR #41370: URL: https://github.com/apache/spark/pull/41370#discussion_r1217318011
########## sql/hive/src/main/scala/org/apache/spark/sql/hive/client/HiveShim.scala: ########## @@ -1041,6 +1053,9 @@ private[client] class Shim_v0_13 extends Shim_v0_12 { ExtractableLiteral(value), ExtractAttribute(SupportedAttribute(name))) => Some(s"$value ${op.symbol} $name") + case EqualTo(ExtractStringAttribute(SupportedAttribute(name)), ExtractableLiteral(value)) => + Some(s"$name = $value") + Review Comment: A test like this: ```scala test("SPARK-43866:xxx") { withTable("test_tb") { sql("CREATE TABLE test_tb (id int) PARTITIONED BY (dt string)") sql("insert into test_tb partition(dt = '20230505.0') select 1") val df = sql("select * from test_tb where dt=20230505") checkAnswer(df, Row(1, "20230505.0")) } } ``` -- 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: reviews-unsubscr...@spark.apache.org 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