@@ -1759,7 +1759,7 @@ impl SchemaApiTestSuite {
1759
1759
1760
1760
let want = TableInfo {
1761
1761
ident,
1762
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
1762
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
1763
1763
name : tbl_name. into ( ) ,
1764
1764
meta : table_meta ( created_on) ,
1765
1765
tenant : tenant. to_string ( ) ,
@@ -1788,7 +1788,7 @@ impl SchemaApiTestSuite {
1788
1788
let got = mt. get_table ( ( tenant, db_name, tbl_name) . into ( ) ) . await ?;
1789
1789
let want = TableInfo {
1790
1790
ident : tb_ident_2,
1791
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
1791
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
1792
1792
name : tbl_name. into ( ) ,
1793
1793
meta : table_meta ( created_on) ,
1794
1794
tenant : tenant. to_string ( ) ,
@@ -1825,7 +1825,7 @@ impl SchemaApiTestSuite {
1825
1825
let got = mt. get_table ( ( tenant, "db1" , "tb2" ) . into ( ) ) . await . unwrap ( ) ;
1826
1826
let want = TableInfo {
1827
1827
ident : tb_ident_2,
1828
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
1828
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
1829
1829
name : tbl_name. into ( ) ,
1830
1830
meta : table_meta ( created_on) ,
1831
1831
tenant : tenant. to_string ( ) ,
@@ -2247,7 +2247,7 @@ impl SchemaApiTestSuite {
2247
2247
let got = mt. get_table ( ( tenant, db1_name, tb3_name) . into ( ) ) . await ?;
2248
2248
let want = TableInfo {
2249
2249
ident : tb_ident,
2250
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db1_name, tb3_name) ,
2250
+ desc : format ! ( "'{}'.'{}'" , db1_name, tb3_name) ,
2251
2251
name : tb3_name. into ( ) ,
2252
2252
meta : table_meta ( created_on) ,
2253
2253
tenant : tenant. to_string ( ) ,
@@ -2383,7 +2383,7 @@ impl SchemaApiTestSuite {
2383
2383
let got = mt. get_table ( ( tenant, db2_name, tb3_name) . into ( ) ) . await ?;
2384
2384
let want = TableInfo {
2385
2385
ident : tb_ident2,
2386
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db2_name, tb3_name) ,
2386
+ desc : format ! ( "'{}'.'{}'" , db2_name, tb3_name) ,
2387
2387
name : tb3_name. into ( ) ,
2388
2388
meta : table_meta ( created_on) ,
2389
2389
tenant : tenant. to_string ( ) ,
@@ -2465,7 +2465,7 @@ impl SchemaApiTestSuite {
2465
2465
2466
2466
let want = TableInfo {
2467
2467
ident,
2468
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
2468
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
2469
2469
name : tbl_name. into ( ) ,
2470
2470
meta : table_meta ( created_on) ,
2471
2471
tenant : tenant. to_string ( ) ,
@@ -3054,7 +3054,7 @@ impl SchemaApiTestSuite {
3054
3054
3055
3055
let want = TableInfo {
3056
3056
ident,
3057
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
3057
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
3058
3058
name : tbl_name. into ( ) ,
3059
3059
meta : table_meta ( created_on) ,
3060
3060
tenant : tenant. to_string ( ) ,
@@ -4174,9 +4174,9 @@ impl SchemaApiTestSuite {
4174
4174
assert_eq ! ( sort_drop_ids, drop_ids_1) ;
4175
4175
4176
4176
let expected: BTreeSet < String > = [
4177
- "'tenant1'.' db1'.'tb1'" . to_string ( ) ,
4178
- "'tenant1'.' db2'.'tb1'" . to_string ( ) ,
4179
- "'tenant1'.' db3'.'tb1'" . to_string ( ) ,
4177
+ "'db1'.'tb1'" . to_string ( ) ,
4178
+ "'db2'.'tb1'" . to_string ( ) ,
4179
+ "'db3'.'tb1'" . to_string ( ) ,
4180
4180
]
4181
4181
. iter ( )
4182
4182
. cloned ( )
@@ -4206,12 +4206,12 @@ impl SchemaApiTestSuite {
4206
4206
assert_eq ! ( sort_drop_ids, drop_ids_2) ;
4207
4207
4208
4208
let expected: BTreeSet < String > = [
4209
- "'tenant1'.' db1'.'tb1'" . to_string ( ) ,
4210
- "'tenant1'.' db2'.'tb1'" . to_string ( ) ,
4211
- "'tenant1'.' db2'.'tb2'" . to_string ( ) ,
4212
- "'tenant1'.' db2'.'tb3'" . to_string ( ) ,
4213
- "'tenant1'.' db3'.'tb1'" . to_string ( ) ,
4214
- "'tenant1'.' db3'.'tb2'" . to_string ( ) ,
4209
+ "'db1'.'tb1'" . to_string ( ) ,
4210
+ "'db2'.'tb1'" . to_string ( ) ,
4211
+ "'db2'.'tb2'" . to_string ( ) ,
4212
+ "'db2'.'tb3'" . to_string ( ) ,
4213
+ "'db3'.'tb1'" . to_string ( ) ,
4214
+ "'db3'.'tb2'" . to_string ( ) ,
4215
4215
]
4216
4216
. iter ( )
4217
4217
. cloned ( )
@@ -4519,7 +4519,10 @@ impl SchemaApiTestSuite {
4519
4519
4520
4520
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4521
4521
name: tbl_name. to_string( ) ,
4522
- desc: tbl_name_ident. to_string( ) ,
4522
+ desc: format!(
4523
+ "'{}'.'{}'" ,
4524
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4525
+ ) ,
4523
4526
drop_on_cnt: 0 ,
4524
4527
non_drop_on_cnt: 1 ,
4525
4528
} ] ) ;
@@ -4558,7 +4561,10 @@ impl SchemaApiTestSuite {
4558
4561
. await ?;
4559
4562
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4560
4563
name: tbl_name. to_string( ) ,
4561
- desc: tbl_name_ident. to_string( ) ,
4564
+ desc: format!(
4565
+ "'{}'.'{}'" ,
4566
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4567
+ ) ,
4562
4568
drop_on_cnt: 1 ,
4563
4569
non_drop_on_cnt: 0 ,
4564
4570
} ] ) ;
@@ -4583,7 +4589,10 @@ impl SchemaApiTestSuite {
4583
4589
. await ?;
4584
4590
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4585
4591
name: tbl_name. to_string( ) ,
4586
- desc: tbl_name_ident. to_string( ) ,
4592
+ desc: format!(
4593
+ "'{}'.'{}'" ,
4594
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4595
+ ) ,
4587
4596
drop_on_cnt: 0 ,
4588
4597
non_drop_on_cnt: 1 ,
4589
4598
} ] ) ;
@@ -4615,7 +4624,10 @@ impl SchemaApiTestSuite {
4615
4624
. await ?;
4616
4625
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4617
4626
name: tbl_name. to_string( ) ,
4618
- desc: tbl_name_ident. to_string( ) ,
4627
+ desc: format!(
4628
+ "'{}'.'{}'" ,
4629
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4630
+ ) ,
4619
4631
drop_on_cnt: 1 ,
4620
4632
non_drop_on_cnt: 0 ,
4621
4633
} ] ) ;
@@ -4645,7 +4657,10 @@ impl SchemaApiTestSuite {
4645
4657
4646
4658
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4647
4659
name: tbl_name. to_string( ) ,
4648
- desc: tbl_name_ident. to_string( ) ,
4660
+ desc: format!(
4661
+ "'{}'.'{}'" ,
4662
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4663
+ ) ,
4649
4664
drop_on_cnt: 1 ,
4650
4665
non_drop_on_cnt: 1 ,
4651
4666
} ] ) ;
@@ -4675,7 +4690,10 @@ impl SchemaApiTestSuite {
4675
4690
. await ?;
4676
4691
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4677
4692
name: tbl_name. to_string( ) ,
4678
- desc: tbl_name_ident. to_string( ) ,
4693
+ desc: format!(
4694
+ "'{}'.'{}'" ,
4695
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4696
+ ) ,
4679
4697
drop_on_cnt: 2 ,
4680
4698
non_drop_on_cnt: 0 ,
4681
4699
} ] ) ;
@@ -4700,7 +4718,10 @@ impl SchemaApiTestSuite {
4700
4718
4701
4719
calc_and_compare_drop_on_table_result ( res, vec ! [ DroponInfo {
4702
4720
name: tbl_name. to_string( ) ,
4703
- desc: tbl_name_ident. to_string( ) ,
4721
+ desc: format!(
4722
+ "'{}'.'{}'" ,
4723
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4724
+ ) ,
4704
4725
drop_on_cnt: 1 ,
4705
4726
non_drop_on_cnt: 1 ,
4706
4727
} ] ) ;
@@ -4742,13 +4763,19 @@ impl SchemaApiTestSuite {
4742
4763
calc_and_compare_drop_on_table_result ( res, vec ! [
4743
4764
DroponInfo {
4744
4765
name: tbl_name. to_string( ) ,
4745
- desc: tbl_name_ident. to_string( ) ,
4766
+ desc: format!(
4767
+ "'{}'.'{}'" ,
4768
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4769
+ ) ,
4746
4770
drop_on_cnt: 1 ,
4747
4771
non_drop_on_cnt: 1 ,
4748
4772
} ,
4749
4773
DroponInfo {
4750
4774
name: new_tbl_name. to_string( ) ,
4751
- desc: new_tbl_name_ident. to_string( ) ,
4775
+ desc: format!(
4776
+ "'{}'.'{}'" ,
4777
+ new_tbl_name_ident. db_name, new_tbl_name_ident. table_name
4778
+ ) ,
4752
4779
drop_on_cnt: 0 ,
4753
4780
non_drop_on_cnt: 1 ,
4754
4781
} ,
@@ -4782,13 +4809,19 @@ impl SchemaApiTestSuite {
4782
4809
calc_and_compare_drop_on_table_result ( res, vec ! [
4783
4810
DroponInfo {
4784
4811
name: tbl_name. to_string( ) ,
4785
- desc: tbl_name_ident. to_string( ) ,
4812
+ desc: format!(
4813
+ "'{}'.'{}'" ,
4814
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4815
+ ) ,
4786
4816
drop_on_cnt: 1 ,
4787
4817
non_drop_on_cnt: 1 ,
4788
4818
} ,
4789
4819
DroponInfo {
4790
4820
name: new_tbl_name. to_string( ) ,
4791
- desc: new_tbl_name_ident. to_string( ) ,
4821
+ desc: format!(
4822
+ "'{}'.'{}'" ,
4823
+ new_tbl_name_ident. db_name, new_tbl_name_ident. table_name
4824
+ ) ,
4792
4825
drop_on_cnt: 1 ,
4793
4826
non_drop_on_cnt: 0 ,
4794
4827
} ,
@@ -4818,13 +4851,19 @@ impl SchemaApiTestSuite {
4818
4851
calc_and_compare_drop_on_table_result ( res, vec ! [
4819
4852
DroponInfo {
4820
4853
name: tbl_name. to_string( ) ,
4821
- desc: tbl_name_ident. to_string( ) ,
4854
+ desc: format!(
4855
+ "'{}'.'{}'" ,
4856
+ tbl_name_ident. db_name, tbl_name_ident. table_name
4857
+ ) ,
4822
4858
drop_on_cnt: 1 ,
4823
4859
non_drop_on_cnt: 0 ,
4824
4860
} ,
4825
4861
DroponInfo {
4826
4862
name: new_tbl_name. to_string( ) ,
4827
- desc: new_tbl_name_ident. to_string( ) ,
4863
+ desc: format!(
4864
+ "'{}'.'{}'" ,
4865
+ new_tbl_name_ident. db_name, new_tbl_name_ident. table_name
4866
+ ) ,
4828
4867
drop_on_cnt: 1 ,
4829
4868
non_drop_on_cnt: 1 ,
4830
4869
} ,
@@ -4905,7 +4944,7 @@ impl SchemaApiTestSuite {
4905
4944
4906
4945
let want = TableInfo {
4907
4946
ident,
4908
- desc : format ! ( "'{}'.'{}'.'{}'" , tenant , db_name, tbl_name) ,
4947
+ desc : format ! ( "'{}'.'{}'" , db_name, tbl_name) ,
4909
4948
name : tbl_name. into ( ) ,
4910
4949
meta : table_meta ( created_on) ,
4911
4950
tenant : tenant. to_string ( ) ,
0 commit comments