[ 
https://issues.apache.org/jira/browse/SPARK-55396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063671#comment-18063671
 ] 

Holden Karau commented on SPARK-55396:
--------------------------------------

[~steven.aerts] can you clarify where you made this PR / link it?

> support for java.lang.record in bean encoder
> --------------------------------------------
>
>                 Key: SPARK-55396
>                 URL: https://issues.apache.org/jira/browse/SPARK-55396
>             Project: Spark
>          Issue Type: New Feature
>          Components: SQL
>    Affects Versions: 4.2.0
>            Reporter: Steven Aerts
>            Priority: Major
>
> The bean encoder of spark does not support java records yet.
> We made a pull request extending the bean encoder with support for them:
> {code:java}
> record Person(String name, int age) {}
> ...
> var ds = spark.createDataset(List.of(new Person("Alice", 25)), 
> Encoders.bean(Person.class));{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to