93dcd6aed4
[parser] ddl: some partition expression should return syntax error ( #1087 )
...
* fix partition bug
* update parser
* update parser
* add test
* fix test
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
2021-10-09 14:53:23 +08:00
090324c031
[parser] ast: visit Update / Delete as well for CreateBindingStmt / DropBindingStmt ( #1086 )
2021-10-09 14:53:23 +08:00
b76254849a
[parser] support SELECT FROM TABLESAMPLE syntax ( #1071 )
...
* support SELECT FROM TABLESAMPLE syntax
* refine naming
* make table sample clause as a part of TableFactor
* address comment
2021-10-09 14:53:23 +08:00
cb5af255be
[parser] support call statement ( #1077 )
...
* support call statement
* support call statement (review fixes)
* support call statement (review fixes)
Co-authored-by: tiancaiamao <tiancaiamao@gmail.com >
2021-10-09 14:53:23 +08:00
d22bd1e23d
[parser] Update the errors dependence to the latest version ( #1079 )
2021-10-09 14:53:23 +08:00
4d239a8573
[parser] *: tiny optimize for huge partition table ( #1072 )
...
* *: tiny optimize for huge partition table
Signed-off-by: crazycs520 <crazycs520@gmail.com >
* Update model/model.go
Co-authored-by: kennytm <kennytm@gmail.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
02e1f6b198
[parser] parser.y: distinguish between empty string index and anonymous index ( #1059 )
2021-10-09 14:53:23 +08:00
512a9eb8a8
[parser] parser: support SQL bind syntax for update / delete ( #1067 )
2021-10-09 14:53:23 +08:00
eb188bac29
[parser] ddl: support multiple table rename ( #1021 )
2021-10-09 14:53:23 +08:00
c7f93089c6
[parser] goyacc: record the original text position in AST ( #984 )
2021-10-09 14:53:23 +08:00
74eb1b9729
[parser] *: fix not and ! restored ( #1064 )
...
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* address comment
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
c815b8c826
[parser] ast: add explain format=json ( #1055 )
...
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
9beeac38b3
[parser] collation: add new pinyin collation utf8mb4_zh_pinyin_tidb_as_cs ( #1058 )
2021-10-09 14:53:23 +08:00
e3daabacc0
[parser] *: redact arguments for Error ( #1051 )
2021-10-09 14:53:23 +08:00
c20039dd15
[parser] ast: Don't write comma when restore TableOption of ALTER TABLE ( #1061 )
2021-10-09 14:53:23 +08:00
527317804e
[parser] model: add an extra field on Job for passing argumens ( #1052 )
2021-10-09 14:53:23 +08:00
caa3a88377
[parser] parser: support alter sequence ( #1046 )
2021-10-09 14:53:23 +08:00
fca01d8347
[parser] ddl: *support list column partition table ( #1042 )
2021-10-09 14:53:23 +08:00
0e71182447
[parser] types: allows more types to be equal ( #1041 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
5c19e29b5c
[parser] parser : support table statement and value statement ( #1026 )
...
* implement Table stmt
* fmt
* add TableStmt into Statement rule, fix OFFSET rule
* support TableStmt in InsertStmt
* remove TableStmtLimit, use SelectStmtLimit instead
* support basic setoptr, need to fix a lot things
* support INTO OUTFILE
* support CREATE TABLE and CREATE VIEW
* support basic VALUES stmt
* fmt
* implement set operation for table
* add some comment
* fix the wrong implements of TABLE stmt
* fix the wrong implements of VALUES stmt
* fix SetOprNode interface
* rename the fields refer to SetOpr statement, fix some comments
* finish
* remove unused comment
* resolve conflicts
* refactor
* resolve conflicts
* fix small problems
* remove wrong use of RowStmtField
2021-10-09 14:53:23 +08:00
123af51c0c
[parser] expression: Support bin-to-uuid and uuid-to-bin ( #1038 )
...
* add uuid-to-bin bin-to-uuid
* add test
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
ce43a3960b
[parser] parser: introduce a new hint set_var ( #1039 )
...
* support hint SET_VAR
* add set_var test
* add test case
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
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