You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Herman van Hövell (Jira)" <ji...@apache.org> on 2024/09/19 00:11:00 UTC

[jira] [Resolved] (SPARK-49568) Remove Self Type for Dataset

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

Herman van Hövell resolved SPARK-49568.
---------------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 48146
[https://github.com/apache/spark/pull/48146]

> Remove Self Type for Dataset
> ----------------------------
>
>                 Key: SPARK-49568
>                 URL: https://issues.apache.org/jira/browse/SPARK-49568
>             Project: Spark
>          Issue Type: New Feature
>          Components: Connect, SQL
>    Affects Versions: 4.0.0
>            Reporter: Herman van Hövell
>            Assignee: Herman van Hövell
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>
> We are currently using a self type for Dataset. This makes it a bit easier (in Scala land) to deal with covariant parameters and return types.
> The current approach is unfortunately a bit leaky. For example the self-type leaks into SparkSession and things like the Catalog. This is a bit distracting especially when you use these classes in java.
> The proposal is to either remove the self-type and rely on overrides (which have to anyway), or to take another stab at using type members.



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