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

Feature: tracing issue of share SQL support #6973

Closed
8 tasks done
lichuang opened this issue Aug 3, 2022 · 3 comments
Closed
8 tasks done

Feature: tracing issue of share SQL support #6973

lichuang opened this issue Aug 3, 2022 · 3 comments
Labels
C-feature Category: feature

Comments

@lichuang
Copy link
Contributor

lichuang commented Aug 3, 2022

@lichuang lichuang added the C-feature Category: feature label Aug 3, 2022
@lichuang lichuang changed the title Feature: tracing issue of share AST support Feature: tracing issue of share SQL support Aug 3, 2022
@lichuang lichuang mentioned this issue Aug 29, 2022
5 tasks
@BohuTANG
Copy link
Member

Great!

cc @soyeric128 for documenting the 🚀 Data Sharing feature, thanks.

@soyeric128
Copy link
Collaborator

Hi @lichuang , could you pls show me the new commands introduced by this feature ?
Thanks.

@lichuang
Copy link
Contributor Author

lichuang commented Sep 1, 2022

  1. create and drop share.
create share test_share comment = 'comment';
DROP SHARE IF EXISTS test_share;
  1. grant and revoke object.
grant USAGE on DATABASE show_shares TO SHARE test_share;
grant SELECT on TABLE show_shares.test_tb TO SHARE test_share;
  1. alter share tenants
alter share test_share add tenants = 'a';
  1. desc share
desc share test_share.
  1. show shares
SHOW SHARES;
  1. show grants on object and show grants of share_name
show grants of share test_share;
show grants on DATABASE show_shares;
show grants on TABLE show_shares.test_tb;
  1. create database from share
create database db from share test_share.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-feature Category: feature
Projects
None yet
Development

No branches or pull requests

3 participants