Skip to content

[SPARK-57397][PYTHON][3.5] Raise an exception when parsed UDT is the wrong type#56476

Open
gaogaotiantian wants to merge 3 commits into
apache:branch-3.5from
gaogaotiantian:udt-import-backport
Open

[SPARK-57397][PYTHON][3.5] Raise an exception when parsed UDT is the wrong type#56476
gaogaotiantian wants to merge 3 commits into
apache:branch-3.5from
gaogaotiantian:udt-import-backport

Conversation

@gaogaotiantian

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Check whether the imported class is a real UserDefinedType before calling it.

Why are the changes needed?

If it's not a UDT, it could run wrong code.

Does this PR introduce any user-facing change?

Not for normal use.

How was this patch tested?

Regression test added.

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

No.

… type

Check whether the imported class is a real UserDefinedType before calling it.

If it's not a UDT, it could run wrong code.

Not for normal use.

Regression test added.

No.

Closes apache#56460 from gaogaotiantian/add-import-type-check.

Authored-by: Tian Gao <gaogaotiantian@hotmail.com>
Signed-off-by: DB Tsai <dbtsai@dbtsai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant