[
https://issues.apache.org/jira/browse/SPARK-8653?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606904#comment-14606904
]
Reynold Xin commented on SPARK-8653:
------------------------------------
I think a better way to do this is to have a trait called ExpectsInputTypes
(and rename the current one, as did in SPARK-8721) with a method that returns
Seq[Any], and each element can be:
1. a specific data type
2. a Seq[DataType]
3. a non-leaf data type, e.g. NumericType
And we can easily have an analysis rule that does the check. This is much
simpler than the version in the pull request.
> 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
>
> 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]