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

datetime formatter violates assert of variable seconds fraction

    XMLWordPrintableJSON

Details

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

    Description

      The datetime pattern "\nSSSS\r" cause failure on assert while parsing the pattern by datetime formatter:

      java.lang.AssertionError: assertion failed
      	at scala.Predef$.assert(Predef.scala:264)
      	at org.apache.spark.ErrorClassesJsonReader.getMessageTemplate(ErrorClassesJSONReader.scala:91)
      	at org.apache.spark.ErrorClassesJsonReader.getErrorMessage(ErrorClassesJSONReader.scala:46)
      	at org.apache.spark.SparkThrowableHelper$.getMessage(SparkThrowableHelper.scala:56)
      	at org.apache.spark.SparkIllegalArgumentException.<init>(SparkException.scala:405)
      	at org.apache.spark.SparkIllegalArgumentException.<init>(SparkException.scala:417)
      	at org.apache.spark.SparkIllegalArgumentException.<init>(SparkException.scala:422)
      	at org.apache.spark.sql.catalyst.util.DateTimeFormatterHelper$.$anonfun$createBuilderWithVarLengthSecondFraction$1(DateTimeFormatterHelper.scala:247)
      

      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: