Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-8947 Improve expression type coercion, casting & checking
  3. SPARK-7562

Improve error reporting for expression data type mismatch

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SQL
    • None

    Description

      There is currently no error reporting for expression data types in analysis (we rely on "resolved" for that, which doesn't provide great error messages for types). It would be great to have that in checkAnalysis.

      Ideally, it should be the responsibility of each Expression itself to specify the types it requires, and report errors that way. We would need to define a simple interface for that so each Expression can implement. The default implementation can just use the information provided by ExpectsInputTypes.expectedChildTypes.

      cc marmbrus what we discussed offline today.

      Attachments

        Issue Links

          Activity

            People

              cloud_fan Wenchen Fan
              rxin Reynold Xin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: