spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dongjoon Hyun (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-16906) Adds more input type information for TypedAggregateExpression
Date Thu, 08 Dec 2016 23:09:58 GMT

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

Dongjoon Hyun updated SPARK-16906:
----------------------------------
    Component/s: SQL

> Adds more input type information for TypedAggregateExpression
> -------------------------------------------------------------
>
>                 Key: SPARK-16906
>                 URL: https://issues.apache.org/jira/browse/SPARK-16906
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>            Reporter: Sean Zhong
>            Assignee: Sean Zhong
>            Priority: Minor
>             Fix For: 2.1.0
>
>
> For TypedAggregateExpression 
> {code}
> case class TypedAggregateExpression(
>     aggregator: Aggregator[Any, Any, Any],
>     inputDeserializer: Option[Expression],
>     bufferSerializer: Seq[NamedExpression],
>     bufferDeserializer: Expression,
>     outputSerializer: Seq[Expression],
>     outputExternalType: DataType,
>     dataType: DataType,
>     nullable: Boolean) extends DeclarativeAggregate with NonSQLExpression
> {code}
> Aggregator of TypedAggregateExpression usually contains a closure like: 
> {code}
> class TypedSumDouble[IN](f: IN => Double) extends Aggregator[IN, Double, Double]
> {code}
> It will be great if we can add more info in TypedAggregateExpression to describe the
closure input type {{IN}}, like class, and schema, so that we can use this info to make customized
optimization like SPARK-14083



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