-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#6086] fix(CLI): Refactor the validation logic of Metalake #6091
[#6086] fix(CLI): Refactor the validation logic of Metalake #6091
Conversation
Add verify method to Command, and refactor the validation code.
Hi @justinmclean @tengqm , could you please review this PR when you have time? I’d really appreciate your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR is on the right track, I believe.
Thanks.
clients/cli/src/main/java/org/apache/gravitino/cli/commands/Command.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/MetalakeEnable.java
Outdated
Show resolved
Hide resolved
clients/cli/src/main/java/org/apache/gravitino/cli/commands/RemoveMetalakeProperty.java
Show resolved
Hide resolved
…zation (apache#6065) ### What changes were proposed in this pull request? Add the check of requests related to authorization ### Why are the changes needed? Fix: apache#6060 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added UT.
…apache#6067) ### What changes were proposed in this pull request? Fix the issues of list user or group details ### Why are the changes needed? Fix: apache#6061 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Added UT.
…tion and code structure layout (apache#5835) ### What changes were proposed in this pull request? 1. Implement basic FUSE interfaces. 2. Implement filesystem trait and relation structures. ### Why are the changes needed? Fix: apache#5734 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? No
…pache#5878) ### What changes were proposed in this pull request? Implement a common filesystem layer to handle manage file ids, file name mappings, and file relationships. and delegate filesystem APIs to PathFilesystem. ### Why are the changes needed? Fix: apache#5877 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Uts
…pache#5915) ### What changes were proposed in this pull request? Implement an in-memory filesystem for testing and validating the FUSE framework. You need to implement the PathFilesystem trait and support basic file and directory operations: ### Why are the changes needed? Fix: apache#5886 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? IT
…em (apache#5984) ### What changes were proposed in this pull request? Implement an Gravitino fileset file system, Support mount fileset to local directory ### Why are the changes needed? Fix: apache#5982 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? UT and IT
…em operation in gvfs fuse (apache#6013) ### What changes were proposed in this pull request? Support a Gravitino S3 fileset filesystem operation in gvfs fuse, implemented by OpenDal ### Why are the changes needed? Fix: apache#6012 ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Manually test --------- Co-authored-by: Qiming Teng <[email protected]>
…el (apache#6066) Add register and link commands to CLI for model - register a model:`model create` - link a model:`model update <—uri uri> [--alias aliaA aliaB]` meantime, add two options - `—uri` :The URI of the model version artifact. - `—alias` :The aliases of the model version. The documentation will be updated after apache#6047 merge and I will create a new issue. Fix: apache#5960 NO ```bash gcli model create -m demo_metalake --name Hive_catalog.default.model gcli model create -m demo_metalake --name Hive_catalog.default.model --comment comment gcli model create -m demo_metalake --name Hive_catalog.default.model --properties key1=val1 key2=val2 gcli model create -m demo_metalake --name Hive_catalog.default.model --properties key1=val1 klinkey2=val2 --comment comment ``` ```bash gcli model update -m demo_metalake --name Hive_catalog.default.model --uri file:///tmp/file gcli model update -m demo_metalake --name Hive_catalog.default.model --uri file:///tmp/file --alias aliasA aliasB gcli model update -m demo_metalake --name Hive_catalog.default.model --uri file:///tmp/file --alias aliasA aliasB --comment comment --properties key1=val1 key2=val2 gcli model update -m demo_metalake --name Hive_catalog.default.model ```
Add verify method to Command, and refactor the validation code.
@justinmclean , I’ve finished updating the code. Please take a look at the PR again when you have time. |
clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java
Outdated
Show resolved
Hide resolved
@justinmclean I’ve finished updating the code. Please take a look at the PR again when you have time. |
clients/cli/src/main/java/org/apache/gravitino/cli/GravitinoCommandLine.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contribution.
What changes were proposed in this pull request?
Add
validate
method to Command, and refactor the validation code.Why are the changes needed?
Fix: #6086
Does this PR introduce any user-facing change?
No.
How was this patch tested?
UT
local ut
bash