spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davies Liu (JIRA)" <>
Subject [jira] [Commented] (SPARK-8653) Add constraint for Children expression for data type
Date Wed, 01 Jul 2015 05:30:04 GMT


Davies Liu commented on SPARK-8653:

[~rxin] With the new `ExpectsInputTypes`, we still need a way to tell how to do the conversion,
it's ugly to do the type switch in eval() or codegen().

Maybe we could improve `AutoCastInputType` to have a method `acceptedTypes`, which returns
a list of list of data types, specify those types could be casted into expected types. Be
default, it will accept all type types which could be casted to expected types. 

> Add constraint for Children expression for data type
> ----------------------------------------------------
>                 Key: SPARK-8653
>                 URL:
>             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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message