dengziming commented on code in PR #52012:
URL: https://github.com/apache/spark/pull/52012#discussion_r2282362927


##########
connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/v2/OracleIntegrationSuite.scala:
##########
@@ -219,12 +225,14 @@ class OracleIntegrationSuite extends 
DockerJDBCIntegrationV2Suite with V2JDBCTes
     assert(rows2(0).getString(0) === "amy")
     assert(rows2(1).getString(0) === "alex")
 
-    val df3 = sql(s"SELECT name FROM $tbl WHERE month(date1) = 5")
-    checkFilterPushed(df3)
-    val rows3 = df3.collect()
-    assert(rows3.length === 2)
-    assert(rows3(0).getString(0) === "amy")
-    assert(rows3(1).getString(0) === "alex")
+    if (ansiMode) {

Review Comment:
   `Cast` can only be pushed down in ANSI mode, so we should only enable these 
tests in ANSI mode.



-- 
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]

Reply via email to