152a00dd79
parser: use utf-8 charset to decode enum binary string literal ( #31336 )
...
close pingcap/tidb#30740
2022-01-07 11:22:37 +08:00
17927d489a
parser: decode the binary literal value in enum or set ( #31231 )
...
close pingcap/tidb#30740
2022-01-04 14:14:35 +08:00
dd95dd6e4c
parser: support admin flush plan_cache ( #30747 )
2021-12-17 17:34:36 +08:00
23af09d8bf
*: support trace plan target='estimation' statement ( #30491 )
2021-12-10 11:43:57 +08:00
723242ad24
parser: support trace plan statement ( #29720 )
...
* support trace plan statement
Signed-off-by: yisaer <disxiaofei@163.com >
* fix conflict
Signed-off-by: yisaer <disxiaofei@163.com >
* fix fmt
Signed-off-by: yisaer <disxiaofei@163.com >
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io >
2021-11-22 13:09:45 +08:00
ec7a638e33
executor: Fix authplugin handling with alter/create ( #28468 )
2021-11-02 01:10:51 +08:00
cc96f59bdb
*: rename RECREATOR to REPLAYER ( #28826 )
2021-10-15 16:23:27 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
726409a242
[parser] Add 'auth_socket' ( #1323 )
2021-10-09 14:53:23 +08:00
742f960ce7
[parser] parser: add plan recreator statement ( #1278 )
2021-10-09 14:53:23 +08:00
276a575804
[parser] Restart statement support ( #1267 )
...
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
eca248cb71
[parser] Correct typo: s/TslNone/TlsNone/ ( #1270 )
2021-10-09 14:53:23 +08:00
a8fd323ac6
[parser] parser: fix the compatiblity of explain_format ( #1262 )
2021-10-09 14:53:23 +08:00
c0fd7427f1
[parser] Add 'HELP' statement support ( #1250 )
2021-10-09 14:53:23 +08:00
4415136781
[parser] auth: check for NUL in caching_sha2_password salt ( #1246 )
2021-10-09 14:53:23 +08:00
12d0a279c4
[parser] parser,ast: Support for authentication plugins ( #1236 )
2021-10-09 14:53:23 +08:00
732586d33f
[parser] *: clean up the deserted syntax of START TRANSACTION READ ONLY ( #1230 )
...
* Clean up the deserted syntax of START TRANSACTION READ ONLY
Signed-off-by: JmPotato <ghzpotato@gmail.com >
2021-10-09 14:53:23 +08:00
e8aea0f97d
[parser] parser: add AsOfClause for START TRANSACTION READ ONLY statement ( #1215 )
...
* Add AsOfClause for START TRANSACTION READ ONLY statement
Signed-off-by: JmPotato <ghzpotato@gmail.com >
2021-10-09 14:53:23 +08:00
f09db3e3ce
[parser] feat: force_index hint ( #1205 )
2021-10-09 14:53:23 +08:00
940fbea282
[parser] parser, ast: add RENAME USER stmt ( #1204 )
2021-10-09 14:53:23 +08:00
c80bc1e8f9
[parser] parser, ast: add explain for ALTER TABLE ( #1196 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
7aa3bf1b2f
[parser] Add "START TRANSACTION WITH CAUSAL CONSISTENCY ONLY" ( #1162 )
...
* add a start transaction without external consistency statement
Signed-off-by: ekexium <ekexium@gmail.com >
* change the grammar to 'with causal consistency'
Signed-off-by: ekexium <ekexium@gmail.com >
* rename WithoutExternalConsistency to CausalConsistency
Signed-off-by: ekexium <ekexium@gmail.com >
* change syntax to 'start transaction with causal consistency only'
Signed-off-by: ekexium <ekexium@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
f2bcba6779
[parser] ast: support explain format = 'test' syntax ( #1164 )
2021-10-09 14:53:23 +08:00
ef95ffa348
[parser] parser, ast: replace TIDB_STATS with STATS_EXTENDED ( #1159 )
2021-10-09 14:53:23 +08:00
5e94208b8b
[parser] ast, misc, parser: add FLUSH CLIENT_ERRORS_SUMMARY ( #1154 )
2021-10-09 14:53:23 +08:00
e944f5cfcb
[parser] *: add CREATE IMPORT and other control statement ( #1147 )
2021-10-09 14:53:23 +08:00
a3519e86f4
[parser] *: create / drop extended stats by ALTER TABLE ( #1138 )
2021-10-09 14:53:23 +08:00
df89db3af2
[parser] parser: change the trace statement default format to row ( #1107 )
...
* parser: change trace statement default format to row
* fix CI
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
8950ad0f44
[parser] *: support dynamic privileges and more extended privileges ( #1144 )
...
* *: support dynamic privileges and more extended privileges
* address comment
* address comment
2021-10-09 14:53:23 +08:00
d0d67ddb9e
[parser] *: support GRANT PROXY ( #1142 )
2021-10-09 14:53:23 +08:00
22aef2341f
[parser] ast, parser: add FUNCTION and PROCEDURE for GRANT object_type ( #1136 )
2021-10-09 14:53:23 +08:00
207955cf69
[parser] *: change privilege type to uint64 and support REPLICATION CLIENT, etc ( #1121 )
2021-10-09 14:53:23 +08:00
5d600ee3b0
[parser] *: support multiple select options ( #1122 )
...
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* done
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* clean
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* fix
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* clean
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
* address comment
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
42ac1b81d6
[parser] parser: add RESUME and BRIEOptionLevel for IMPORT ( #1100 )
2021-10-09 14:53:23 +08:00
8a2041474b
[parser] parser: add PURGE IMPORT ( #1102 )
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
090324c031
[parser] ast: visit Update / Delete as well for CreateBindingStmt / DropBindingStmt ( #1086 )
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
c815b8c826
[parser] ast: add explain format=json ( #1055 )
...
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
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
49b6c5e4b4
[parser] parser: support CREATE STATISTICS / DROP STATISTICS / ADMIN RELOAD STATISTICS ( #913 )
2021-10-09 14:53:23 +08:00
2dbf28d553
[parser] fix: correct file permission ( #918 )
...
Commit 334dfef16055ffaf9c704b7ad25ce7540cb6ce38 changed several files into
executables. Commit f6e17887c998e7c7d460bfabb198ed5f53dd22a2 reverted the
permission of parser_test.go from 755 to 644, but missed all other
files. Later go.mod1/go.sum1 are removed. This commit fixed the
permission of remaining affected files.
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
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
bc08b269a0
[parser] support require SAN clause ( #877 )
...
* Support `require SAN` clause
* address comments
2021-10-09 14:53:23 +08:00