79398e55da
[parser] parser: SQL BINDING support UNION ALL/INTERSECT/EXCEPT ( #1030 )
2021-10-09 14:53:23 +08:00
0a026a0b5e
[parser] parser.y: allow subquery without table alias syntax-checked ( #968 )
...
* parser.y: allow subquery without table alias to be parsed
* resolve conflict
2021-10-09 14:53:23 +08:00
1ffb873bba
[parser] executor: add builtin aggregate function json_arrayagg ( #1020 )
2021-10-09 14:53:23 +08:00
fbe75839dc
[parser] parser: fix select field for set operator query ( #1035 )
2021-10-09 14:53:23 +08:00
8e140e87df
[parser] parser: fix select field for set operator ( #1034 )
2021-10-09 14:53:23 +08:00
1b0af1dc96
[parser] parser: support except all, intersect all, parentheses for set operator ( #960 )
2021-10-09 14:53:23 +08:00
7f3ab46241
[parser] Add support GRANT CREATE TABLESPACE syntax ( #1029 )
...
* Add support GRANT CREATE TABLESPACE syntax
* recompilation parser.go
* adjust CreateTablespacePriv constant
2021-10-09 14:53:23 +08:00
8b4d3d968d
[parser] fix: add "UNDERSCORE_CHARSET hexLit/bitLit" in Literal ( #926 )
...
Signed-off-by: wangggong <793160615@qq.com >
Co-authored-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
4a04e063a6
[parser] support select for update wait seconds grammar ( #997 )
2021-10-09 14:53:23 +08:00
d215bbeaf1
[parser] Support APPROX_PERCENTILE function ( #1002 )
...
* support approx_percentile function
* update
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
c0d8c870f1
[parser] parser: trim trailing spaces in enum and set ( #1006 )
...
* trim space in enum and set
* add test
* add test
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
f42586fcd3
[parser] feat: add "HISTOGRAM" option in "ALTER TABLE... UPDATE/DROP..." ( #925 )
2021-10-09 14:53:23 +08:00
a329df515d
[parser] fix tiny bug about cast function ( #995 )
2021-10-09 14:53:23 +08:00
57acffbb54
[parser] parser: add FETCH FIRST syntax support ( #985 )
2021-10-09 14:53:23 +08:00
7ad133a444
[parser] fix: use OptCharsetWithOptBinary for ENUM & SET ( #976 )
...
See also: https://github.com/mysql/mysql-server/blob/8.0/sql/sql_yacc.yy#L6617
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
9c327e0427
[parser] fix: add hex & bit for text_string ( #975 )
...
See also: https://github.com/mysql/mysql-server/blob/8.0/sql/sql_yacc.yy#L13936
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
65f09c723c
[parser] parser: return parser warning of ErrWarnDeprecatedIntegerDisplayWidth directly ( #980 )
...
* ???
Signed-off-by: AilinKid <314806019@qq.com >
* Update parser.y
Co-authored-by: Lynn <zimu_xia@126.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
Co-authored-by: Lynn <zimu_xia@126.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
01de34b128
[parser] Add std and stddev function ( #972 )
2021-10-09 14:53:23 +08:00
192317874d
[parser] *: DROP PLACEMENT require an role option ( #971 )
...
This option can not be optional.
2021-10-09 14:53:23 +08:00
8d3acc2988
[parser] *: forbid REPLICAS = 0 ( #967 )
2021-10-09 14:53:23 +08:00
25ef3fa701
[parser] *: remove redundant checks ( #965 )
2021-10-09 14:53:23 +08:00
691be56704
[parser] parser: support placement rules for ALTER TABLE ( #964 )
...
It's a part of project "Placement rules in SQL". It also includes a fix
for multiple subclause restore(did not add ',' before) and two tests for
this case.
2021-10-09 14:53:23 +08:00
38c62f0075
[parser] *: fix placement naming ( #962 )
2021-10-09 14:53:23 +08:00
3829a68c83
[parser] parser: support DROP PLACEMENT clause ( #961 )
...
It's a part of project "Placement rules in SQL".
2021-10-09 14:53:23 +08:00
cb1c19623a
[parser] parser: support ALTER PLACEMENT clause ( #937 )
...
It's a part of project "Placement rules in SQL".
2021-10-09 14:53:23 +08:00
8dc1467a7f
[parser] correct calculation of field lengths for Enum and Set types ( #954 )
...
* fix invalid enum flen
* fix invalid set flen
* address comments
2021-10-09 14:53:23 +08:00
49b6c5e4b4
[parser] parser: support CREATE STATISTICS / DROP STATISTICS / ADMIN RELOAD STATISTICS ( #913 )
2021-10-09 14:53:23 +08:00
a1997e6b2a
[parser] add config variable to control max display length ( #949 )
2021-10-09 14:53:23 +08:00
3110c880b1
[parser] parser: create integer type field with specified length should have warings ( #939 )
...
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
2021-10-09 14:53:23 +08:00
88e2440084
[parser] parser: more meaningful words for placement rules ( #931 )
...
follow
https://github.com/pingcap/tidb/issues/18030#issuecomment-654943694 .
However, "constraints" is used for "label". Because it is not
necessarily related to region/locality.
2021-10-09 14:53:23 +08:00
53b1520d57
[parser] fix: remove warning for "REORGANIZE PARTITION" ( #605 ) ( #924 )
...
Note that in commit fdfeac in pingcap/tidb the errror was already handled.
Need to do nothing.
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
8f8575ddf5
[parser] parser: support set operator EXCEPT and INTERSECT ( #916 )
2021-10-09 14:53:23 +08:00
c307c0dab5
[parser] parser: support ALTER PARTITION clause ( #921 )
2021-10-09 14:53:23 +08:00
faaef33f76
[parser] fix: remove warning in parser for rebuild/check/optimize/repair partition ( #920 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
7589d60ccb
[parser] fix: remove warning in "remove partitioning" ( #914 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
3e8e073033
[parser] Add Admin Telemetry Statement ( #908 )
...
* Add telemetry tokens to admin statement
Signed-off-by: Breezewish <me@breeswish.org >
* Merge ADMIN SHOW TELMETRY_ID and ADMIN SHOW TELEMETRY_DATA
Signed-off-by: Breezewish <me@breeswish.org >
2021-10-09 14:53:23 +08:00
b5dafb9522
[parser] parser: fix signed num will parse error when it encounter two's complement min ( #905 )
2021-10-09 14:53:23 +08:00
329541ccbd
[parser] parser: support alter table add/drop/alter constraint ( #899 )
2021-10-09 14:53:23 +08:00
fa0c1896c7
[parser] let function names like a.b() be parsed successfully ( #876 )
2021-10-09 14:53:23 +08:00
027524a52a
[parser] fix charset alias in case function ( #891 )
2021-10-09 14:53:23 +08:00
962f231781
[parser] remove the empty branch in VariableAssignmentList ( #886 )
2021-10-09 14:53:23 +08:00
772de04d12
[parser] ddl: remove warning for constraint and check clause ( #888 )
2021-10-09 14:53:23 +08:00
bc08b269a0
[parser] support require SAN clause ( #877 )
...
* Support `require SAN` clause
* address comments
2021-10-09 14:53:23 +08:00
07de176c89
[parser] parser: support check constraints field ( #871 )
2021-10-09 14:53:23 +08:00
814bac8c12
[parser] parser: support partition selection grammer for the delete statement ( #868 )
2021-10-09 14:53:23 +08:00
7550c31db7
[parser] parser: add new agg function APPROX_COUNT_DISTINCT ( #854 )
...
Signed-off-by: Tong Zhigao <tongzhigao@pingcap.com >
2021-10-09 14:53:23 +08:00
9b457148b7
[parser] support the syntax insert into tbl_name partition ( #856 )
...
* test
* support the syntax insert into tbl_name partition
* address comment
2021-10-09 14:53:23 +08:00
5638d0cf6d
[parser] support show table partition regions ( #855 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2021-10-09 14:53:23 +08:00
cae9d348f2
[parser] Fix set charset statement ( #836 )
2021-10-09 14:53:23 +08:00
56449d183d
[parser] *: Add ddl Action Exchange partition ( #852 )
...
* add action of exchange partition
* delete warn
* recreat parser.go
2021-10-09 14:53:23 +08:00