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

Set the rebase configs to the CORRECTED mode by default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0
    • 4.0.0
    • SQL

    Description

      Set all rebase related SQL configs to the `CORRECTED` mode by default. Here are the affected configs:

      • spark.sql.parquet.int96RebaseModeInWrite
      • spark.sql.parquet.datetimeRebaseModeInWrite
      • spark.sql.parquet.int96RebaseModeInRead
      • spark.sql.parquet.datetimeRebaseModeInRead
      • spark.sql.avro.datetimeRebaseModeInWrite
      • spark.sql.avro.datetimeRebaseModeInRead

      The configs were set to the `EXCEPTION` mode to give users a choice to select proper mode for compatibility with old Spark versions <= 2.4.5. Those versions are not able to detect the rebase mode from meta information in parquet and avro files. Since the versions are out of broad usage, Spark starting from the version 4.0.0 will write/ read ancient datatime without rebasing and any exceptions. This should be more convenient for users.

      Attachments

        Issue Links

          Activity

            People

              maxgekk Max Gekk
              maxgekk Max Gekk
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: