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

Restrict tested values of DateType, TimestampType and CalendarIntervalType

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 3.0.0
    • SQL, Tests
    • None

    Description

      Valid ranges for:

      • DateType is [0001-01-01, 9999-12-31]
      • TimestampType is [0001-01-01T00:00:00.000000Z, 9999-12-31T23:59:59.999999Z]
        And CalendarIntervalType cannot define interval out of ranges above.

      Existing implementation of random literals generates values out of the ranges above, and rarely tests valid dates and timestamps. The ticket aims to restrict the random pseudo generators, and fix some tests.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: