huaxingao commented on code in PR #36830:
URL: https://github.com/apache/spark/pull/36830#discussion_r897413352
##########
sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCV2Suite.scala:
##########
@@ -424,6 +424,24 @@ class JDBCV2Suite extends QueryTest with
SharedSparkSession with ExplainSuiteHel
checkFiltersRemoved(df10)
checkPushedInfo(df10, "PushedFilters: [ID IS NOT NULL, ID > 1], ")
checkAnswer(df10, Row("mary", 2))
+
+ val df11 = sql(
+ """
+ |SELECT * FROM h2.test.employee
+ |WHERE GREATEST(bonus, 1100) > 1200 AND LEAST(salary, 10000) > 9000
AND RAND(1) < 1
+ |""".stripMargin)
+ checkFiltersRemoved(df11)
+ checkPushedInfo(df11, "PushedFilters: " +
+ "[(GREATEST(BONUS, 1100.0)) > 1200.0, (LEAST(SALARY, 10000.00)) >
9000.00, RAND(1) < 1.0]")
+ checkAnswer(df11, Row(2, "david", 10000, 1300, true))
+
+ val df12 = sql("""
Review Comment:
nit: can we follow the style at line 428 for consistency?
--
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]