Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-7098

Inconsistent Timestamp behavior when used in WHERE clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.2.1
    • 1.4.0
    • SQL
    • None
    • Windows, Linux, Mac OS X with Java 1.7

    Description

      java.sql.Timestamps containing a nano value of 0 are not matched in a WHERE clause like SELECT ... FROM ... WHERE TS_COL = '2015-04-23 02:55:00.0'. When used with an explicit cast like SELECT ... FROM ... WHERE TS_COL = CAST('2015-04-23 02:55:00.0' AS TIMESTAMP) things work as expected.

      Attachments

        Activity

          People

            viirya L. C. Hsieh
            peterhagelund Peter Hagelund
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: