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

[#6014] refactor: CLI output methods for no data hints #6015

Merged
merged 1 commit into from
Dec 28, 2024

Conversation

waukin
Copy link
Contributor

@waukin waukin commented Dec 26, 2024

What changes were proposed in this pull request?

In the ListMetalakes and ListCatalogs methods, retain the use of output(metalakes) and output(catalogs). If metalakes or catalogs are empty arrays, they will be handled by the output method in PlainFormat and TableFormat.

Why are the changes needed?

Issue: #6014

Does this PR introduce any user-facing change?

No.

How was this patch tested?

No.

@tengqm
Copy link
Contributor

tengqm commented Dec 27, 2024

lgtm

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.

Thanks for the PR

@justinmclean justinmclean merged commit 69e93f9 into apache:main Dec 28, 2024
25 checks passed
Abyss-lord pushed a commit to Abyss-lord/gravitino that referenced this pull request Dec 29, 2024
…6015)

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

In the `ListMetalakes` and `ListCatalogs` methods, retain the use of
`output(metalakes)` and `output(catalogs)`. If metalakes or catalogs are
empty arrays, they will be handled by the `output` method in
`PlainFormat` and `TableFormat`.

### Why are the changes needed?

Issue: apache#6014

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

No.

### How was this patch tested?

No.
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.

3 participants