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

Allow pools to be given a ksuid name #5019

Merged
merged 2 commits into from
Feb 13, 2024
Merged

Allow pools to be given a ksuid name #5019

merged 2 commits into from
Feb 13, 2024

Conversation

mattnibs
Copy link
Collaborator

@mattnibs mattnibs commented Feb 3, 2024

The commit fixes an issue with pool looks that made it so pools with a ksuid-like name could not be looked up for most zed commands. Fix the logic for lake/api.PoolID so that looking up a pool by ID is tried first and then falls back to looking up a pool by name if nothing is found.

Closes #4431
Closes #4828

The commit fixes an issue with pool looks that made it so pools with a
ksuid-like name could not be looked up for most zed commands. Fix the
logic for lake/api.PoolID so that looking up a pool by ID is tried first
and then falls back to looking up a pool by name if nothing is found.

Closes #4431
Copy link
Member

@nwt nwt left a comment

Choose a reason for hiding this comment

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

PR description says this closes #4431 but I still see this.

$ zed query 'from "Alice test_full-report.json" | count()'
AlichftestYfulosreporwtjson: pool not found

lake/root.go Outdated Show resolved Hide resolved
lake/ztests/create-ksuid-name.yaml Show resolved Hide resolved
service/ztests/create-ksuid-name.yaml Outdated Show resolved Hide resolved
@mattnibs mattnibs merged commit 9f61b4e into main Feb 13, 2024
3 checks passed
@mattnibs mattnibs deleted the pool-ksuid-name branch February 13, 2024 21:53
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.

"zed use" accepts KSUID, but the pool still can't be used Corrupt pool name based on filename
2 participants