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

refactor: Add KVPbApi::list_pb(), simplify UdfMgr::get_udfs() #14623

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Feb 6, 2024

I hereby agree to the terms of the CLA available at: https://docs.databend.com/dev/policies/cla/

Summary

refactor: Add KVPbApi::list_pb(), simplify UdfMgr::get_udfs()

KVPbApi::list_pb() lists key value pairs by a prefix DirName<K>, and
decodes key back to kvapi::Key and values back to kvapi::Key::ValueType.

UdfMgr::get_udfs() is simplified by using list_pb().

Changelog

  • Improvement

Related Issues


This change is Reviewable

@github-actions github-actions bot added the pr-refactor this PR changes the code base without new features or bugfix label Feb 6, 2024
@drmingdrmer drmingdrmer marked this pull request as ready for review February 6, 2024 07:06
`KVPbApi::list_pb()` lists key value pairs by a prefix `DirName<K>`, and
decodes key back to `kvapi::Key` and values back to `kvapi::Key::ValueType`.

`UdfMgr::get_udfs()` is simplified by using `list_pb()`.
Copy link
Member Author

@drmingdrmer drmingdrmer left a comment

Choose a reason for hiding this comment

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

Reviewed 8 of 8 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @everpcpc, @lichuang, and @sundy-li)

@drmingdrmer drmingdrmer merged commit fe35df1 into databendlabs:main Feb 6, 2024
72 checks passed
@drmingdrmer drmingdrmer deleted the 41-list-udf branch February 6, 2024 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-refactor this PR changes the code base without new features or bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant