79398e55da
[parser] parser: SQL BINDING support UNION ALL/INTERSECT/EXCEPT ( #1030 )
2021-10-09 14:53:23 +08:00
0c0b9d0e05
[parser] model: add SQL mode and warnings field for ddl job ( #1031 )
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
5276047602
[parser] ast: Change the implementation of Accept for DefaultExpr ( #1027 )
2021-10-09 14:53:23 +08:00
6789b2118a
[parser] fix CreateTablespacePriv order in const ( #1032 )
...
* Add support GRANT CREATE TABLESPACE syntax
* recompilation parser.go
* adjust CreateTablespacePriv constant
* fix CreateTablespacePriv order in const
* add comment
2021-10-09 14:53:23 +08:00
00712da525
[parser] parser: rename topn_to_cop hint to limit_to_cop hint. ( #1028 )
...
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
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
9885b111b7
[parser] yy_parser: use the default SQL mode when create a new parser ( #1023 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
b62fb54317
[parser] quickstart.md: fix typo ( #1018 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
090d5ccc98
[parser] model: support add extra partition ID column ( #1010 )
...
define ExtraPidColID
add NewExtraPartitionIDColInfo to support create extra pid column
2021-10-09 14:53:23 +08:00
3478f82e55
[parser] fix incorrect convert function restore ( #1015 )
...
* fix convert restore bug
* fmt
* fix
2021-10-09 14:53:23 +08:00
958292eb74
[parser] remove IsTruth to IsTruthWithoutNull ( #1016 )
2021-10-09 14:53:23 +08:00
ed60a224fc
[parser] using standard error code to replace terror ( #982 )
2021-10-09 14:53:23 +08:00
d4fd96dd1f
[parser] Revert "ast: Change the implementation of Accept for DefaultExpr ( #1007 )" ( #1013 )
2021-10-09 14:53:23 +08:00
75aea7b059
[parser] ast: Change the implementation of Accept for DefaultExpr ( #1007 )
...
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
2021-10-09 14:53:23 +08:00
e00ce30482
[parser] withNull ( #1005 )
...
Co-authored-by: Yuanjia Zhang <zhangyuanjia@pingcap.com >
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
dcc137315f
[parser] fix: string(int) expression not allowed on Go1.15 ( #1003 )
...
Make test will fail due to Go1.15 starts to not allow "string(int)" expression.
Fix affected sources by replace such expression to legal expressions.
More info about ban string(int), see: https://github.com/golang/go/issues/3939
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
305020c36d
[parser] const: fix wrong SQL mode const ( #1008 )
...
* const: fix wrong SQL mode const
* add test
* remove some change
* trigger CI
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
8dea072eee
[parser] yy_parser: enable supportWindowFunc by default ( #986 )
...
Co-authored-by: crazycs <crazycs520@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
7a64b806d6
[parser] model: support columar table ( #1000 )
2021-10-09 14:53:23 +08:00
90606e4b55
[parser] Fix syntax error caused by unexpected hint ( #1004 )
...
* fix 987
* fix CI
* fix CI
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
e97111f91e
[parser] terror: add stack trace in terror log ( #989 )
...
* terror: add stack trace in terror log
* use zap.stack
2021-10-09 14:53:23 +08:00
0b129de5dd
[parser] model: add DroppingDefinitions for PartitionInfo ( #970 )
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
ebb56dd2c8
[parser] model: fix null origin default value for bit column ( #983 )
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
b77fec8b53
[parser] parser: add topn_to_cop hint ( #981 )
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
96f79a6832
[parser] model: add replica only type to string ( #978 )
2021-10-09 14:53:23 +08:00
01de34b128
[parser] Add std and stddev function ( #972 )
2021-10-09 14:53:23 +08:00
aa4be370de
[parser] model: add ChangeStateInfo to ColumnInfo ( #966 )
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
a109865322
[parser] ast/dml: replace digitals with predefined constants ( #953 )
...
Co-authored-by: tangenta <tangenta@126.com >
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