Github user HyukjinKwon commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11005#discussion_r51493048
  
    --- Diff: sql/core/src/test/scala/org/apache/spark/sql/jdbc/JDBCSuite.scala 
---
    @@ -455,31 +458,31 @@ class JDBCSuite extends SparkFunSuite
         assert(DerbyColumns === Seq(""""abc"""", """"key""""))
       }
     
    -  test("compile filters") {
    -    val compileFilter = PrivateMethod[Option[String]]('compileFilter)
    -    def doCompileFilter(f: Filter): String = JDBCRDD invokePrivate 
compileFilter(f) getOrElse("")
    -    assert(doCompileFilter(EqualTo("col0", 3)) === "col0 = 3")
    -    assert(doCompileFilter(Not(EqualTo("col1", "abc"))) === "(NOT (col1 = 
'abc'))")
    -    assert(doCompileFilter(And(EqualTo("col0", 0), EqualTo("col1", "def")))
    -      === "(col0 = 0) AND (col1 = 'def')")
    -    assert(doCompileFilter(Or(EqualTo("col0", 2), EqualTo("col1", "ghi")))
    -      === "(col0 = 2) OR (col1 = 'ghi')")
    -    assert(doCompileFilter(LessThan("col0", 5)) === "col0 < 5")
    -    assert(doCompileFilter(LessThan("col3",
    -      Timestamp.valueOf("1995-11-21 00:00:00.0"))) === "col3 < '1995-11-21 
00:00:00.0'")
    -    assert(doCompileFilter(LessThan("col4", Date.valueOf("1983-08-04"))) 
=== "col4 < '1983-08-04'")
    -    assert(doCompileFilter(LessThanOrEqual("col0", 5)) === "col0 <= 5")
    -    assert(doCompileFilter(GreaterThan("col0", 3)) === "col0 > 3")
    -    assert(doCompileFilter(GreaterThanOrEqual("col0", 3)) === "col0 >= 3")
    -    assert(doCompileFilter(In("col1", Array("jkl"))) === "col1 IN ('jkl')")
    -    assert(doCompileFilter(Not(In("col1", Array("mno", "pqr"))))
    -      === "(NOT (col1 IN ('mno', 'pqr')))")
    -    assert(doCompileFilter(IsNull("col1")) === "col1 IS NULL")
    -    assert(doCompileFilter(IsNotNull("col1")) === "col1 IS NOT NULL")
    -    assert(doCompileFilter(And(EqualNullSafe("col0", "abc"), 
EqualTo("col1", "def")))
    -      === "((NOT (col0 != 'abc' OR col0 IS NULL OR 'abc' IS NULL) "
    -        + "OR (col0 IS NULL AND 'abc' IS NULL))) AND (col1 = 'def')")
    -  }
    +//  test("compile filters") {
    --- End diff --
    
    It looks you forgot to uncomment those..


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to