spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reynold Xin (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-7562) Improve error reporting for expression data type mismatch
Date Tue, 12 May 2015 08:14:01 GMT

     [ https://issues.apache.org/jira/browse/SPARK-7562?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Reynold Xin updated SPARK-7562:
-------------------------------
    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. 



  was:
There is currently no error reporting for expression data types in analysis. 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. 




> Improve error reporting for expression data type mismatch
> ---------------------------------------------------------
>
>                 Key: SPARK-7562
>                 URL: https://issues.apache.org/jira/browse/SPARK-7562
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>            Reporter: Reynold Xin
>
> 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. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message