Difference between == and === in Scala, Spark

Difference between == and === in Scala, Spark

Asked on January 11, 2019 in Apache-spark.
Add Comment


  • 2 Answer(s)

    Here this “==” symbol verifies if the two references point to the same object. The definition of “===” depends on the context/object. For Spark , “===” is using the equalTo method.

    for the symbol == 

    https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/sql/Column.html#equals(java.lang.Object)

    for the symbol ===

    https://spark.apache.org/docs/2.0.0/api/java/org/apache/spark/sql/Column.html#equalTo(java.lang.Object)

    The return value is very important for spark.

    For the Column:

    == This will returns a boolean

    === This will returns a column.

    Answered on January 11, 2019.
    Add Comment

    Here these are functions

    The different types of symbols are, “==” and “===” might be defined or “overloaded” for different meanings.

    For instance, in some test framework, “===” is used for some special function.

    Answered on January 11, 2019.
    Add Comment


  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.