Skip to content

Conversation

@deniskuzZ
Copy link
Member

What changes were proposed in this pull request?

Transform the column name in ColumnStatsObj to lowercase

Why are the changes needed?

NullPointerException Fix

Does this PR introduce any user-facing change?

No

Is the change a dependency upgrade?

No

How was this patch tested?

q test

…me case in ColumnStatisticsObj differs from the table schema
List<Object> values) throws HiveException {
ColumnStatisticsObj statsObj = new ColumnStatisticsObj();
statsObj.setColName(columnName);
statsObj.setColName(columnName.toLowerCase());

Choose a reason for hiding this comment

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

How this fix the lower case? Somewhere is a compare the column name and in other places could be capital?

Copy link
Member Author

@deniskuzZ deniskuzZ Apr 10, 2025

Choose a reason for hiding this comment

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

it's always lowercased in Hive schema, but not in ColumnStatisticsObj

Copy link
Contributor

@SourabhBadhya SourabhBadhya left a comment

Choose a reason for hiding this comment

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

LGTM +1 (pending tests)

@sonarqubecloud
Copy link

@deniskuzZ deniskuzZ merged commit aacbe29 into apache:master Apr 12, 2025
4 checks passed
@deniskuzZ deniskuzZ deleted the HIVE-28886 branch April 12, 2025 10:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants