Skip to content

Conversation

eejbyfeldt
Copy link
Contributor

This is backport of SPARK-52614 #51319 to branch-4.0

What changes were proposed in this pull request?

This fixes support for using a RowEncoder inside a ProductEncoder.

Why are the changes needed?

The current does a dataType check on a path when contructing the RowEncoder deserializer. But this is not safe and if the RowEncoder is used inside a ProductEncoder, it will throw because the path Expression is unresolved.

The check was introduced in #49785

Does this PR introduce any user-facing change?

Yes, it makes it possible to use RowEncoder in more cases.

How was this patch tested?

Existing and new unit tests.

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

No

This fixes support for using a RowEncoder inside a ProductEncoder.

The current does a dataType check on a path when contructing the RowEncoder deserializer. But this is not safe and if the RowEncoder is used inside a ProductEncoder, it will throw because the path Expression is unresolved.

The check was introduced in apache#49785

Yes, it makes it possible to use RowEncoder in more cases.

Existing and new unit tests.

No

Closes apache#51319 from eejbyfeldt/SPARK-52614.

Authored-by: Emil Ejbyfeldt <emil.ejbyfeldt@choreograph.com>
Signed-off-by: Herman van Hovell <herman@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant