poojatalele opened a new pull request, #4350:
URL: https://github.com/apache/gravitino/pull/4350
<!--
1. Title: [#issue] <type>(<scope>): <subject>
Examples:
- "[#123] feat(operator): support xxx"
- "[#233] fix: check null before access result in xxx"
- "[MINOR] refactor: fix typo in variable name"
- "[MINOR] docs: fix typo in README"
- "[#255] test: fix flaky test NameOfTheTest"
Reference: https://www.conventionalcommits.org/en/v1.0.0/
2. If the PR is unfinished, please mark this PR as draft.
-->
### 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?
1. Ensured all existing tests related to schema operations pass successfully.
2. Manually verified the functionality of schema updates to confirm no
regressions were introduced.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]