Skip to content
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

[Spark] Fix case sensitive of delta statistic column #2758

Merged

Conversation

kamcheungting-db
Copy link
Contributor

@kamcheungting-db kamcheungting-db commented Mar 16, 2024

Which Delta project/connector is this regarding?

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

Description

This PR fixes a bug that happens when collecting the column attributes specified inside Delta statistic column table property.

The Delta statistic column table property translates all columns' name into lower case while table schema keep the case of each column created by customer. As a result, if there are upper case columns inside table definition, the delta statistic collection would miss these columns.

This PR fixes this issue by translating the column name to lower case while searching statistic columns.

How was this patch tested?

Modify existing test case to cover more column character cases.

@kamcheungting-db kamcheungting-db changed the title case-insensitive-stats-columns Fix case sensitive of delta statistic column Mar 18, 2024
@vkorukanti vkorukanti changed the title Fix case sensitive of delta statistic column [Spark] Fix case sensitive of delta statistic column Mar 18, 2024
@vkorukanti vkorukanti merged commit 5cf1a60 into delta-io:master Mar 18, 2024
8 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.

4 participants