You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "keepConcentration (via GitHub)" <gi...@apache.org> on 2025/08/28 04:23:20 UTC

[PR] [#8283] improvement(cli): Exit with error when both --comment and --rename are missing in fileset update [gravitino]

keepConcentration opened a new pull request, #8324:
URL: https://github.com/apache/gravitino/pull/8324

   
   <!--
   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?
   
   - Added validation in `FilesetCommandHandler.handleUpdateCommand()` to exit with an error when both `--comment` and `--rename` options are missing for the `fileset update` command.
   - Introduced new error message constant `MISSING_COMMENT_AND_RENAME`.
   - Added a unit test `testUpdateFilesetCommandWithoutOptions`.
   
   ### Why are the changes needed?
   
   Currently, the `fileset update` command can be executed without providing `--comment` or `--rename` options, which results in a no-op operation.
   
   Fix: #8283
   
   ### Does this PR introduce _any_ user-facing change?
   
   Yes.  
   - Running `fileset update` without `--comment` or `--rename` will now exit with an error message:  
   ```
   Missing --comment and --rename options.
   ```
   
   ### How was this patch tested?
   
   1. Executed a unit test `testUpdateFilesetCommandWithoutOptions()`
   2. Executed existing unit tests
   


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8283] improvement(cli): Exit with error when both --comment and --rename are missing in fileset update [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean merged PR #8324:
URL: https://github.com/apache/gravitino/pull/8324


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [#8283] improvement(cli): Exit with error when both --comment and --rename are missing in fileset update [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on PR #8324:
URL: https://github.com/apache/gravitino/pull/8324#issuecomment-3232199476

   The CI is failing due to a flaky test, testExpireByWeight(), I'll try re-running it.


-- 
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: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org