You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/10/02 20:28:00 UTC
[jira] [Updated] (SPARK-55396) support for java.lang.record in bean encoder
[ https://issues.apache.org/jira/browse/SPARK-55396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-55396:
-----------------------------------
Labels: pull-request-available (was: )
> 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
> Labels: pull-request-available
>
> 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org