Skip to content

[#897] fix: Unify parameter name of fieldName and fieldNames#932

Merged
jerryshao merged 1 commit intoapache:mainfrom
mchades:issue-897
Dec 4, 2023
Merged

[#897] fix: Unify parameter name of fieldName and fieldNames#932
jerryshao merged 1 commit intoapache:mainfrom
mchades:issue-897

Conversation

@mchades
Copy link
Contributor

@mchades mchades commented Dec 4, 2023

What changes were proposed in this pull request?

If this variable ends up pointing to only one field, it should be named fieldName. Therefore, this PR changes all the field parameter name, which point to only one field, from fieldNames to fieldName even though it's of type string array

Why are the changes needed?

We have many places that use either "fieldName" or "fieldNames", this will cause confusion

Fix: #897

Does this PR introduce any user-facing change?

yes, If it is a single field, the user should use fieldName() method

How was this patch tested?

existing UTs

@mchades mchades requested review from FANNG1 and jerryshao December 4, 2023 09:35
@mchades mchades self-assigned this Dec 4, 2023
@mchades mchades requested a review from qqqttt123 December 4, 2023 09:35
@github-actions
Copy link

github-actions bot commented Dec 4, 2023

Code Coverage Report

Overall Project 65.78% -0.15% 🟢
Files changed 79.54% 🟢

Module Coverage
catalog-lakehouse-iceberg 82.12% -0.16% 🟢
client-java 78.4% 🟢
catalog-hive 69.98% 🟢
api 62.87% -1.36% 🟢
Files
Module File Coverage
catalog-lakehouse-iceberg IcebergTableOpsHelper.java 89.65% -0.88% 🟢
client-java DTOConverters.java 70.93% 🟢
catalog-hive HiveCatalogOperations.java 72.81% 🟢
api TableChange.java 78.71% -6.22% 🟢

@jerryshao jerryshao merged commit 939208b into apache:main Dec 4, 2023
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.

[Improvement] Unify parameter name of fieldName and fieldNames

2 participants