b4df7ca4dc
test: make all the tests run in serial ( #30692 )
2021-12-14 18:06:36 +08:00
11b61738f3
parser: migrate test-infra to testify ( #29191 )
2021-10-28 12:30:49 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
f09db3e3ce
[parser] feat: force_index hint ( #1205 )
2021-10-09 14:53:23 +08:00
bc860cdd5e
[parser] *: fix static check report ( #1195 )
...
* ast: base.go
Signed-off-by: xhe <xw897002528@gmail.com >
* ast: expressions.go
Signed-off-by: xhe <xw897002528@gmail.com >
* ast: misc_test.go
Signed-off-by: xhe <xw897002528@gmail.com >
* *: digester.go
Signed-off-by: xhe <xw897002528@gmail.com >
* goyacc: format_yacc.go
Signed-off-by: xhe <xw897002528@gmail.com >
* *: lexer_test.go
Signed-off-by: xhe <xw897002528@gmail.com >
* *: misc.go
Signed-off-by: xhe <xw897002528@gmail.com >
* model: model.go
Signed-off-by: xhe <xw897002528@gmail.com >
* model: model_test.go
Signed-off-by: xhe <xw897002528@gmail.com >
* *: parser_test.go
Signed-off-by: xhe <xw897002528@gmail.com >
* test_driver: test_driver_datum.go
Signed-off-by: xhe <xw897002528@gmail.com >
* test_driver: test_driver_mydecimal.go
Signed-off-by: xhe <xw897002528@gmail.com >
* ast: ddl.go, bugfix
Signed-off-by: xhe <xw897002528@gmail.com >
* mysql: errcode.go
charset/charset.go is passing errcode to NewStd, which requires int. But
here codes are uint16. To get rid of the error, uint16 is removed.
Signed-off-by: xhe <xw897002528@gmail.com >
* model: better test
Signed-off-by: xhe <xw897002528@gmail.com >
* *: fix timezone
Signed-off-by: xhe <xw897002528@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
d30b7993b0
[parser] ast: fix Restore for INL_HASH_JOIN / INL_MERGE_JOIN hints ( #1091 )
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
b77fec8b53
[parser] parser: add topn_to_cop hint ( #981 )
2021-10-09 14:53:23 +08:00
14a88e41ec
[parser] Add hint for broadcast join. ( #818 )
...
* add hint for bc join
* refine
* add hint for bc join
* refine
* refine
* refine
* refine again
* pass test
* fix compile error
* add prefer local
* use bcj_local
* change bc_join to broadcast_join
Co-authored-by: xufei <xufeixw@mail.ustc.edu.cn >
Co-authored-by: ichn-hu <zfhu16@fudan.edu.cn >
2021-10-09 14:53:23 +08:00
cb9c1833c9
[parser] add hint nth_plan for plan test. ( #893 )
2021-10-09 14:53:23 +08:00
ecb9e410a4
[parser] parser: support partition in table hint ( #880 )
2021-10-09 14:53:23 +08:00
4d341938ee
[parser] ast: implement SensitiveStmtNode for BRIEStmt ( #842 )
2021-10-09 14:53:23 +08:00
ea8d816ea7
[parser] rename sm_join to merge_join, letter case correction ( #775 )
...
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
1471d3cc89
[parser] parser: add USE_CASCADES hint syntax ( #769 )
...
Signed-off-by: gauss <gauss1314@gmail.com >
2021-10-09 14:53:23 +08:00
b255e058e5
[parser] *: set charset and collate for string literals correctly ( #761 )
...
* done
* address comment
* fix
* revert
2021-10-09 14:53:23 +08:00
cfc2e0273f
[parser] refine table optimizer hint and make it more generic ( #747 )
...
* refine table optimizer hint and make it more generic
Signed-off-by: Lonng <heng@lonng.org >
* implement the restore
Signed-off-by: Lonng <heng@lonng.org >
* address comment
Signed-off-by: Lonng <heng@lonng.org >
* address comment
Signed-off-by: Lonng <heng@lonng.org >
* fix typo
Signed-off-by: Lonng <heng@lonng.org >
2021-10-09 14:53:23 +08:00
b4395cd5a9
[parser] parser: support database name for optimizer hint ( #586 )
2021-10-09 14:53:23 +08:00
f26c3e85f4
[parser] parser: add support for SHUTDOWN syntax ( #580 )
...
* add support for SHUTDOWN syntax
* add SHUTDOWN privilege syntax
2021-10-09 14:53:23 +08:00
26d10784e4
[parser] add IGNORE_INDEX hint ( #550 )
2021-10-09 14:53:23 +08:00
a9ac52b528
[parser] fix CONSTRAINT syntax ( #548 )
2021-10-09 14:53:23 +08:00
ece045c976
[parser] add a table hint to access table from a specific type of storage. ( #446 )
2021-10-09 14:53:23 +08:00
aa86dbe09c
[parser] parser: add agg_to_cop hint ( #517 )
2021-10-09 14:53:23 +08:00
c7bb4e645c
[parser] change memory quota hint argument ( #513 )
2021-10-09 14:53:23 +08:00
e1690e7912
[parser] parser: support query block in hint ( #491 )
2021-10-09 14:53:23 +08:00
fadfe65c2e
[parser] parser: add several optimizer hints ( #424 )
2021-10-09 14:53:23 +08:00
9d0531f362
[parser] Support update pump or drainer status ( #243 )
2021-10-09 14:53:23 +08:00
0e6164a43e
[parser] parser: implement Restore for SelectStmt ( #153 )
2021-10-09 14:53:23 +08:00
8862bb53b1
[parser] ignore hint when meet unknow token in hint ( #80 )
2021-10-09 14:53:23 +08:00
c270f55405
[parser] *: move github.com/pingcap/tidb/parser here ( #1 )
2021-10-09 14:53:23 +08:00