[#1908] Fix: In HadoopCatalogOperations.java field entity is not used
What changes were proposed in this pull request?
Removed the unused entity variable in the alterSchema method of HadoopCatalogOperations.java. The refactored code now directly updates the schema and retrieves the updated schema entity for returning.
Why are the changes needed?
The entity variable was assigned but never used, which was flagged as a possible bug. Removing this unused variable makes the code cleaner and easier to maintain.
Fix: #1908
Does this PR introduce any user-facing change?
No, this PR does not introduce any user-facing changes.
How was this patch tested?
- Ensured all existing tests related to schema operations pass successfully.
- Manually verified the functionality of schema updates to confirm no regressions were introduced.
@poojatalele Please resolve the code format problem, more detail can be seen in the output of CI.
@poojatalele Please resolve the code format problem, more detail can be seen in the output of CI.
@yuqi1129 Can you please help me with this?
You ned to run ./gradlew :catalogs:catalog-hadoop:spotlessApply and commit the changes to fix the CI issue.
You ned to run
./gradlew :catalogs:catalog-hadoop:spotlessApplyand commit the changes to fix the CI issue.
Pls check now once @justinmclean
You ned to run
./gradlew :catalogs:catalog-hadoop:spotlessApplyand commit the changes to fix the CI issue.Pls check now once @justinmclean
Any update?