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(query/config/storage): Adapt RFC Config Backward Compatibility #5399

Merged
merged 12 commits into from
May 16, 2022

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented May 16, 2022

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

Summary

Part of #5297

This PR adds an outer config for query Config: OuterConfigV0.

We will make sure that:

  • Implement TryFrom OuterConfigV0 Into Config
  • Implement From Config Into OuterConfigV0
  • All internal functions are implemented against on inner Config.
  • All public layers will use config.into_outer() to expose OuterConfigV0
    • User Config / Env / Args
    • system.configs Table
    • HTTP handler

In this PR, we refactor StorageConfig in an enum, so that we can use storage-related configs with confidence.

Only StorageConfig has been adapted, other config fields will be updated in the following PRs.

Changelog

  • Improvement

Xuanwo added 5 commits May 16, 2022 13:05
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
@vercel
Copy link

vercel bot commented May 16, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
databend ⬜️ Ignored (Inspect) May 16, 2022 at 9:17AM (UTC)

@mergify
Copy link
Contributor

mergify bot commented May 16, 2022

Thanks for the contribution!
I have applied any labels matching special text in your PR Changelog.

Please review the labels and make any necessary changes.

Signed-off-by: Xuanwo <github@xuanwo.io>
@Xuanwo Xuanwo changed the title refactor(query/config): Adapt RFC Config Backward Compatibility refactor(query/config/storage): Adapt RFC Config Backward Compatibility May 16, 2022
@Xuanwo Xuanwo requested a review from sundy-li May 16, 2022 07:07
Signed-off-by: Xuanwo <github@xuanwo.io>
Signed-off-by: Xuanwo <github@xuanwo.io>
Copy link
Member

@BohuTANG BohuTANG left a comment

Choose a reason for hiding this comment

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

👍

@Xuanwo
Copy link
Member Author

Xuanwo commented May 16, 2022

Some stage-related tests is broken, I'm working on it.

@Xuanwo Xuanwo merged commit 9bb9e69 into databendlabs:main May 16, 2022
@Xuanwo Xuanwo deleted the rfc-5324-query-storage branch May 16, 2022 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants