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: Replace KVApi::get() and KVApi::mget_kv() with get_kv_stream() #14255

Merged
merged 2 commits into from
Jan 7, 2024

Conversation

drmingdrmer
Copy link
Member

@drmingdrmer drmingdrmer commented Jan 7, 2024

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

Summary

refactor: Replace KVApi::get() and KVApi::mget_kv() with get_kv_stream()
  • Compatibility Update: Starting with this version of
    databend-query, the minimum required version of the meta-service has
    been updated from 1.1.32 to 1.2.226 as of 2023-11-26.

    Note that the min compatible is 1.2.163 but [1.2.163, 1.2.226) are
    removed from release download, due to some known bugs found in these
    versions.

  • The KVApi::get() and KVApi::mget_kv() functions, which previously
    performed similar operations, have been merged into get_kv_stream(),
    which returns a stream of key-value pairs.

    In trait KVApi, get_kv() and mget_kv() are replaced with default
    implementation for backward compatibility.

    Additionally, we have introduced a new error type, IncompleteStream,
    to handle cases where the stream does not complete as expected.

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 Jan 7, 2024
@drmingdrmer drmingdrmer force-pushed the 29-mget-stream branch 5 times, most recently from 6111260 to bfa7591 Compare January 7, 2024 06:41
@drmingdrmer drmingdrmer requested a review from lichuang January 7, 2024 06:47
@drmingdrmer drmingdrmer marked this pull request as ready for review January 7, 2024 06:47
…stream()`

- **Compatibility Update**: Starting with this version of
  databend-query, the minimum required version of the meta-service has
  been updated from 1.1.32 to 1.2.226 as of 2023-11-26.

  Note that the min compatible is 1.2.163 but `[1.2.163, 1.2.226)` are
  removed from release download, due to some known bugs found in these
  versions.

- The `KVApi::get()` and `KVApi::mget_kv()` functions, which previously
  performed similar operations, have been merged into `get_kv_stream()`,
  which returns a stream of key-value pairs.

  In trait `KVApi`, `get_kv()` and `mget_kv()` are replaced with default
  implementation for backward compatibility.

  Additionally, we have introduced a new error type, `IncompleteStream`,
  to handle cases where the stream does not complete as expected.
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 16 of 17 files at r1.
Reviewable status: 16 of 17 files reviewed, all discussions resolved (waiting on @lichuang)

@drmingdrmer drmingdrmer enabled auto-merge January 7, 2024 07:19
@drmingdrmer drmingdrmer disabled auto-merge January 7, 2024 07:40
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 1 of 1 files at r2, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @lichuang)

@drmingdrmer drmingdrmer merged commit ff2bf3f into databendlabs:main Jan 7, 2024
72 checks passed
@drmingdrmer drmingdrmer deleted the 29-mget-stream branch January 7, 2024 07:42
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