You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Reynold Xin (JIRA)" <ji...@apache.org> on 2015/07/15 07:53:05 UTC

[jira] [Resolved] (SPARK-8993) More comprehensive type checking in expressions

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

Reynold Xin resolved SPARK-8993.
--------------------------------
       Resolution: Fixed
    Fix Version/s: 1.5.0

> More comprehensive type checking in expressions
> -----------------------------------------------
>
>                 Key: SPARK-8993
>                 URL: https://issues.apache.org/jira/browse/SPARK-8993
>             Project: Spark
>          Issue Type: Sub-task
>          Components: SQL
>            Reporter: Reynold Xin
>            Assignee: Reynold Xin
>             Fix For: 1.5.0
>
>
> This patch makes the following changes:
> 1. ExpectsInputTypes only defines expected input types, but does not perform any implicit type casting.
> 2. ImplicitCastInputTypes is a new trait that defines both expected input types, as well as performs implicit type casting.
> 3. BinaryOperator has a new abstract function "inputType", which defines the expected input type for both left/right. Concrete BinaryOperator expressions no longer perform any implicit type casting.
> 4. For BinaryOperators, convert NullType (i.e. null literals) into some accepted type so BinaryOperators don't need to handle NullTypes.



--
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