Skip to content
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

[Subtask] Add register/link CLI command for Model #5960

Closed
VigneshSK17 opened this issue Dec 24, 2024 · 2 comments · Fixed by #6066
Closed

[Subtask] Add register/link CLI command for Model #5960

VigneshSK17 opened this issue Dec 24, 2024 · 2 comments · Fixed by #6066
Assignees
Labels
subtask Subtasks of umbrella issue

Comments

@VigneshSK17
Copy link
Contributor

Describe the subtask

Part of an initiative to add Model entity support to CLI

Parent issue

#5959

@VigneshSK17 VigneshSK17 added the subtask Subtasks of umbrella issue label Dec 24, 2024
@VigneshSK17
Copy link
Contributor Author

@Abyss-lord

@Abyss-lord
Copy link
Contributor

Thank you, @xunliu I would like to work on it.

Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 2, 2025
1. Add register and link commands to CLI for model.
2. Add two option for model --uri and --alias.
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 2, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
1. Add register and link commands to CLI for model.
2. Add two option for model --uri and --alias.
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
1. Add register and link commands to CLI for model.
2. Add two option for model --uri and --alias.
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
1. Add register and link commands to CLI for model.
2. Add two option for model --uri and --alias.
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 3, 2025
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this issue Jan 4, 2025
…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
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
subtask Subtasks of umbrella issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants