Skip to content

[SPARK] Handle special characters correctly in validateDataSkippingType #4531

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 14, 2025

Conversation

rahulsmahadev
Copy link
Collaborator

@rahulsmahadev rahulsmahadev commented May 12, 2025

Which Delta project/connector is this regarding?

  • Spark
  • Standalone
  • Flink
  • Kernel
  • Other (fill in here)

Description

Fix bug in stats collection code for handling special characters in column names

How was this patch tested?

  • unit tests

Does this PR introduce any user-facing changes?

no

@rahulsmahadev rahulsmahadev self-assigned this May 12, 2025
Copy link
Contributor

@chirag-s-db chirag-s-db left a comment

Choose a reason for hiding this comment

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

thanks!

// We need to figure out if the column is top-level column
// or a column inside a struct, we support collecting null count stats
// on nested columns part of a struct.
val fieldInsideStruct = prefixPath.size > 0
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fix this bug as well, we were not correctly handling nested columns in the root schema

@@ -526,32 +526,6 @@ class StatsCollectionSuite
)
}
}

test(s"Delta statistic column: invalid data type $invalidType in nested column") {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@allisonport-db allisonport-db merged commit 86a4f1b into delta-io:master May 14, 2025
22 checks passed
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.

3 participants