Skip to content

Conversation

@hvanhovell
Copy link
Contributor

What changes were proposed in this pull request?

This PR removes the self type parameter from Dataset. This turned out to be a bit noisy. The self type is replaced by a combination of covariant return types and abstract types. Abstract types are used when a method takes a Dataset (or a KeyValueGroupedDataset) as an argument.

Why are the changes needed?

The self type made using the classes in sql/api a bit noisy.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing tests.

Was this patch authored or co-authored using generative AI tooling?

No.

@hvanhovell hvanhovell changed the title [SPARK-49568][CONNECT][SQL] Remove Dataset self type from Dataset [SPARK-49568][CONNECT][SQL] Remove self type from Dataset Sep 18, 2024
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is used for type casting the covariant return types.

@hvanhovell
Copy link
Contributor Author

Merging to master

@asfgit asfgit closed this in db8010b Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants