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

[#5924] improvement(CLI): fix cli list command produce no outputs #5942

Merged
merged 3 commits into from
Dec 23, 2024

Conversation

Abyss-lord
Copy link
Contributor

What changes were proposed in this pull request?

When using the list command, it’s helpful to provide a friendly information if no data is retrieve.

Why are the changes needed?

Fix: #5924

Does this PR introduce any user-facing change?

NO

How was this patch tested?

bin/gcli.sh catalog list -m demo_metalake2
# No catalogs exists.

bin/gcli.sh table list -m demo_metalake --name Hive_catalog.empty
# output: No tables exists.

When using the list command, it’s helpful to provide a friendly reminder if no data is retrieve.
@Abyss-lord
Copy link
Contributor Author

Hi @justinmclean @xunliu @tengqm , could you please review this PR when you have a moment? I’d really appreciate your feedback.

@tengqm
Copy link
Contributor

tengqm commented Dec 22, 2024

lgtm

justinmclean
justinmclean previously approved these changes Dec 22, 2024
Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks again for your work on the CLI.

@Abyss-lord
Copy link
Contributor Author

Hi @justinmclean , I’ve finished updating the code. Please take a look at the PR again when you have time.

fix output message "No XXXs" is still a plural.
@Abyss-lord
Copy link
Contributor Author

@justinmclean @xunliu , I’ve finished updating the code. Please take a look at the PR again when you have time.

Copy link
Member

@justinmclean justinmclean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@justinmclean justinmclean merged commit 8b33df5 into apache:main Dec 23, 2024
25 checks passed
@Abyss-lord Abyss-lord deleted the fix-list-output branch December 24, 2024 01:08
Abyss-lord added a commit to Abyss-lord/gravitino that referenced this pull request Dec 29, 2024
…ts (apache#5942)

### What changes were proposed in this pull request?

When using the list command, it’s helpful to provide a friendly
information if no data is retrieve.

### Why are the changes needed?

Fix: apache#5924 

### Does this PR introduce _any_ user-facing change?

NO

### How was this patch tested?

```bash
bin/gcli.sh catalog list -m demo_metalake2
# No catalogs exists.

bin/gcli.sh table list -m demo_metalake --name Hive_catalog.empty
# output: No tables exists.
```

---------

Co-authored-by: Qiming Teng <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Improvement] When no schema exist Gravitino CLI command outputs nothing.
3 participants