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

Throw an user-facing error when reading invalid schema from text DataSource

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.4.3
    • 4.0.0
    • SQL

    Description

      Text DataSource produces table schema with only 1 column, but it is possible to try and create a table with schema having multiple columns.

      Currently, when user tries this, we have an assert in the code, which fails and throws internal spark error. We should throw a better user-facing error.

       

      Attachments

        Issue Links

          Activity

            People

              stefanbuk-db Stefan Bukorovic
              stefanbuk-db Stefan Bukorovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: