[
https://issues.apache.org/jira/browse/SPARK-8653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14609583#comment-14609583
]
Reynold Xin commented on SPARK-8653:
------------------------------------
Implicit type casts should be up to the query engine itself, not each
individual expressions. So we really just need one rule in the TypeCoercion
file to handle the implicit type casts, and each expression can simply specify
the expected input types.
https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Types#LanguageManualTypes-AllowedImplicitConversions
https://msdn.microsoft.com/en-us/library/ms191530.aspx
> Add constraint for Children expression for data type
> ----------------------------------------------------
>
> Key: SPARK-8653
> URL: https://issues.apache.org/jira/browse/SPARK-8653
> Project: Spark
> Issue Type: Sub-task
> Components: SQL
> Reporter: Cheng Hao
> Assignee: Reynold Xin
>
> Currently, we have trait in Expression like `ExpectsInputTypes` and also the
> `checkInputDataTypes`, but can not convert the children expressions
> automatically, except we write the new rules in the `HiveTypeCoercion`.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]