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

Map JDBC SQL TIME type to TimestampType with time portion fixed regardless of timezone

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • SQL
    • None

    Description

      Due to user-experience (confusing to Spark users - java.sql.Time using milliseconds vs Spark using microseconds; and user losing useful functions like hour(), minute(), etc on the column), we have decided to revert back to use TimestampType but this time we will enforce the hour to be consistently across system timezone (via offset manipulation)

      Full Discussion with Wenchen Fan cloud_fan regarding this ticket is here https://github.com/apache/spark/pull/30902#discussion_r569186823

      Related issues: SPARK-33888

      Attachments

        Activity

          People

            idyllictux Duc Hoa Nguyen
            idyllictux Duc Hoa Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: