databend icon indicating copy to clipboard operation
databend copied to clipboard

rfc: add share rfc

Open lichuang opened this issue 2 years ago • 3 comments

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

Summary

docs: add share rfc

Fixes https://github.com/datafuselabs/databend/issues/7058

lichuang avatar Aug 10 '22 03:08 lichuang

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

Name Status Preview Updated
databend ✅ Ready (Inspect) Visit Preview Aug 12, 2022 at 3:07AM (UTC)

vercel[bot] avatar Aug 10 '22 03:08 vercel[bot]

FYI: This PR's type is rfc, which requires three approval to be merged.

Added reviewers: @Xuanwo @ZhiHanZ @flaneur2020 @drmingdrmer

Xuanwo avatar Aug 10 '22 05:08 Xuanwo

It would be better to introduce the share with consumers and producers model. Like the chapter of DDL for shares is producers operation, and CREATE DATABASE <name> FROM SHARE <provider_tenant>.<share_name> is comsumer operation. For a consumer, we should make some questions to be clear:

  1. what are the privileges(permission) for the shared database shared by the producer?
  2. what will happen to the producer when the consumer drop the <shared-database>?
  3. what will happen to the consumer if the producer drops the shared database?

BohuTANG avatar Aug 12 '22 00:08 BohuTANG

It would be better to introduce the share with consumers and producers model.

Created an issue https://github.com/datafuselabs/databend/issues/7094 to track this.

Xuanwo avatar Aug 12 '22 03:08 Xuanwo