Skip to content

Commit

Permalink
*: fix case
Browse files Browse the repository at this point in the history
Signed-off-by: BornChanger <dawn_catcher@126.com>
  • Loading branch information
BornChanger committed Feb 7, 2023
1 parent 4f79638 commit 0e76824
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions parser/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3651,16 +3651,18 @@ func TestDDL(t *testing.T) {
{"create resource group x ru_per_sec=2000", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 2000"},
{"create resource group x ru_per_sec=200000", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 200000"},
{"create resource group x followers=0", false, ""},
{"create resource group x ru_per_sec=2000, burstable", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 2000 BURSTABLE"},
{"create resource group x burstable, ru_per_sec=2000", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 2000 BURSTABLE"},
{"create resource group x ru_per_sec=2000 burstable", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 2000 BURSTABLE"},
{"create resource group x burstable ru_per_sec=2000", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 2000 BURSTABLE"},
{"create resource group x ru_per_sec=1000, burstable", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 1000 BURSTABLE"},
{"create resource group x burstable, ru_per_sec=2000", true, "CREATE RESOURCE GROUP `x` BURSTABLE RU_PER_SEC = 2000"},
{"create resource group x ru_per_sec=3000 burstable", true, "CREATE RESOURCE GROUP `x` RU_PER_SEC = 3000 BURSTABLE"},
{"create resource group x burstable ru_per_sec=4000", true, "CREATE RESOURCE GROUP `x` BURSTABLE RU_PER_SEC = 4000"},

{"alter resource group x cpu ='8c'", false, ""},
{"alter resource group x region ='us, 3'", false, ""},
{"alter resource group x cpu='8c', io_read_bandwidth='2GB/s', io_write_bandwidth='200MB/s'", false, ""},
{"alter resource group x ru_per_sec=2000", true, "ALTER RESOURCE GROUP `x` RU_PER_SEC = 2000"},
{"alter resource group x ru_per_sec=1000", true, "ALTER RESOURCE GROUP `x` RU_PER_SEC = 1000"},
{"alter resource group x ru_per_sec=2000, BURSTABLE", true, "ALTER RESOURCE GROUP `x` RU_PER_SEC = 2000 BURSTABLE"},
{"alter resource group x BURSTABLE, ru_per_sec=3000", true, "ALTER RESOURCE GROUP `x` BURSTABLE RU_PER_SEC = 3000"},
{"alter resource group x BURSTABLE ru_per_sec=4000", true, "ALTER RESOURCE GROUP `x` BURSTABLE RU_PER_SEC = 4000"},
{"alter resource group x ru_per_sec=200000 BURSTABLE", true, "ALTER RESOURCE GROUP `x` RU_PER_SEC = 200000 BURSTABLE"},
{"alter resource group x followers=0", false, ""},

Expand Down

0 comments on commit 0e76824

Please sign in to comment.