spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksander Eskilson (JIRA)" <>
Subject [jira] [Commented] (SPARK-22739) Additional Expression Support for Objects
Date Wed, 20 Dec 2017 22:16:00 GMT


Aleksander Eskilson commented on SPARK-22739:

Yes. I've got a branch with the new expressions added. I had been trying to find existing
tests over the expressions in {{Objects}} for patterns to copy in unit tests for the new expressions,
but was having difficulty finding any that seemed representative, so I could use some guidance.
I'll prepare that branch for a PR to field suggestions if that sounds good.

> Additional Expression Support for Objects
> -----------------------------------------
>                 Key: SPARK-22739
>                 URL:
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 2.3.0
>            Reporter: Aleksander Eskilson
> Some discussion in Spark-Avro [1] motivates additions and minor changes to the {{Objects}}
Expressions API [2]. The proposed changes include
> * a generalized form of {{initializeJavaBean}} taking a sequence of initialization expressions
that can be applied to instances of varying objects
> * an object cast that performs a simple Java type cast against a value
> * making {{ExternalMapToCatalyst}} public, for use in outside libraries
> These changes would facilitate the writing of custom encoders for varying objects that
cannot already be readily converted to a statically typed dataset by a JavaBean encoder (e.g.
> [1] --
> [2] --

This message was sent by Atlassian JIRA

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

View raw message