You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steven Aerts (Jira)" <ji...@apache.org> on 2026/02/06 14:08:00 UTC

[jira] [Created] (SPARK-55396) support for java.lang.record in bean encoder

Steven Aerts created SPARK-55396:
------------------------------------

             Summary: 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.3
            Reporter: Steven Aerts


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