Skip to content

Conversation

yaooqinn
Copy link
Member

@yaooqinn yaooqinn commented Sep 8, 2025

What changes were proposed in this pull request?

catalogString of User Defined Type is mistakenly truncated, which leads to catalog errors.

Why are the changes needed?

bugfix

Does this PR introduce any user-facing change?

No

How was this patch tested?

New Unit Test

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

no

@github-actions github-actions bot added the SQL label Sep 8, 2025
@@ -93,7 +93,7 @@ abstract class UserDefinedType[UserType >: Null] extends DataType with Serializa
case _ => false
}

override def catalogString: String = sqlType.simpleString
override def catalogString: String = sqlType.catalogString
Copy link
Member Author

Choose a reason for hiding this comment

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

simpleString applies truncation in StructType

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM.

The code seems to added at SPARK-14842 . If we need to backport this, could you revise the Affected Version properly, @yaooqinn ?

Screenshot 2025-09-08 at 08 57 42

@dongjoon-hyun
Copy link
Member

Merged to master for Apache Spark 4.1.0.

Please make backporting PRs for the applicable branches, @yaooqinn .

@yaooqinn yaooqinn deleted the SPARK-53518 branch September 9, 2025 02:42
@yaooqinn
Copy link
Member Author

yaooqinn commented Sep 9, 2025

Thank you @dongjoon-hyun, I've updated JIRA and shipped the follow-ups

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.

2 participants