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

Spark 2.0 CSV does not cast null values to certain data types properly

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • SQL
    • None

    Description

      When casting given string datum to specified type, CSV should return null for nullable types if datum == options.nullValue.

      However, for certain data types like Boolean, TimestampType, DateType, CSV in 2.0 does not return null for some "empty" datum. This is a regression comparing to 1.6.

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            proflin Liwei Lin(Inactive)
            proflin Liwei Lin(Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment