Commit Graph

7 Commits

Author SHA1 Message Date
Eridanus
18e1e50889 test(parser): remove confusing quota overflow test 2023-05-13 00:47:41 +08:00
Eridanus
8dc2cad027 test(parser): add hint for create quota overflow test 2023-05-12 20:03:46 +08:00
Eridanus
990c224540 improvement(parser): add support for size suffixes in quota creation
statement parameters

This commit adds support for creating quotas with size suffixes in the
parameter list of a quota creation statement. The parser now recognizes
size suffixes such as "KB", "MB", and "GB" and correctly converts them
to their corresponding values in bytes. This feature improves the
usability of the quota creation statement and makes it more flexible.
The commit also includes additional tests to ensure that the new syntax
is parsed correctly.
Attention: we did not support string literal with double like
execute_time = '1.5'
2023-05-11 20:04:53 +08:00
Eridanus
d479404318 improvement(parser): size suffixes in quota creation parameters
This commit adds support for creating quotas with size suffixes in the
parameter list of a quota creation statement. The parser now recognizes
size suffixes such as "KB", "MB", and "GB" and correctly converts them
to their corresponding values in bytes. This feature improves the
usability of the quota creation statement and makes it more flexible.
The commit also includes additional tests to ensure that the new syntax
is parsed correctly.
2023-04-28 14:05:16 +08:00
Vitaly Baranov
39d73c01b2 Add tags to tests. 2021-09-12 17:15:28 +03:00
JackyWoo
77c0f0a0e7 add quota type QUERY_SELECTS and QUERY_INSERTS 2021-02-07 10:57:18 +08:00
Vitaly Baranov
a5b70fbdda Add tests. 2020-06-15 22:07:47 +03:00