github.com/matrixorigin/matrixone@v1.2.0/test/distributed/cases/tenant/clustertable.result (about)

     1  set global enable_privilege_cache = off;
     2  drop account if exists tenant_test;
     3  create account tenant_test admin_name = 'root' identified by '111' open comment 'tenant_test';
     4  use mo_catalog;
     5  drop table if exists a;
     6  create cluster table a(a int);
     7  insert into a values(0, 0),(1, 0),(2, 0),(3, 0);
     8  insert into a values(0, 1),(1, 1),(2, 1),(3, 1);
     9  update a set account_id=(select account_id from mo_account where account_name="tenant_test") where account_id=1;
    10  select a from a;
    11  a
    12  0
    13  1
    14  2
    15  3
    16  0
    17  1
    18  2
    19  3
    20  use mo_catalog;
    21  select a from a;
    22  a
    23  0
    24  1
    25  2
    26  3
    27  drop account if exists tenant_test;
    28  select a from a;
    29  a
    30  0
    31  1
    32  2
    33  3
    34  drop table if exists a;
    35  drop account if exists tenant_test;
    36  set global enable_privilege_cache = on;