Herman van Hövell created SPARK-49568:
-----------------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]