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
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
2a676ef0da
[parser] types: fix restore cast as binary ( #922 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
f50f4dcdc3
[parser] ast/functions: add tidb_decode_base64 function ( #911 )
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
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
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
cb9c1833c9
[parser] add hint nth_plan for plan test. ( #893 )
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
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
408cf40985
[parser] Unreserved 8 keywords ( #851 )
...
* parser.y: unreserve 8 keywords
* consistent_test: added an optional test to check against MySQL keywords
2021-10-09 14:53:23 +08:00
bcc3e3b2d2
[parser] parser: support TableOptimizerHints in InsertStmt ( #845 )
2021-10-09 14:53:23 +08:00
3a347a826b
[parser] parser: introduce a new privilege for the set config statement ( #835 )
2021-10-09 14:53:23 +08:00
e228ea6519
[parser] parser: change CONFIG to an unreserved keyword
2021-10-09 14:53:23 +08:00
6c03d809f2
[parser] Update BACKUP/RESTORE syntax to match the RFC; Added IMPORT statement ( #824 )
...
* *: remove the s3/gcs-specific options
* *: replace the INCREMENTAL UNTIL syntax with LAST_BACKUP = ...
* *: use SHOW BACKUPS rather than SHOW BACKUP
* *: added IMPORT statements and options
2021-10-09 14:53:23 +08:00
96e2a03403
[parser] parser: rename auto rand table option ( #828 )
2021-10-09 14:53:23 +08:00
97e61aea57
[parser] parser: add auto_random table option support ( #823 )
...
* add auto_random table option support
* .
* .
2021-10-09 14:53:23 +08:00
34c18a6ee0
[parser] add some tests for ignore_plan_cache, and correct a bug in parser.y ( #822 )
2021-10-09 14:53:23 +08:00
7f7e9bf8df
[parser] parser: support using dash('-') in config item names ( #821 )
2021-10-09 14:53:23 +08:00
29c3fc2591
[parser] parser: add order by clause in group_concat ( #813 )
2021-10-09 14:53:23 +08:00
f1d610f394
[parser] fix type conversion panic from NUM to int64 ( #809 )
...
* fix conversion panic from NUM to int64
* catch teardown error
* polish int64num description
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
928eb78a0e
[parser] add func: mvcc_get_by_hex ( #805 )
...
Signed-off-by: Qiannan Lyu <lvqiannan@gmail.com >
Co-authored-by: Lingyu Song <songlingyu@pingcap.com >
2021-10-09 14:53:23 +08:00
22fc63f328
[parser] parser: add autoid cache option ( #765 )
2021-10-09 14:53:23 +08:00
511776d406
[parser] parser: remove sequence order option support ( #796 )
2021-10-09 14:53:23 +08:00
6d587c8837
[parser] support 'binary' collation in table option ( #789 )
...
Co-authored-by: Arenatlx <ailinsilence4@gmail.com >
2021-10-09 14:53:23 +08:00
c6b2ea9598
[parser] parser: add syntax ADMIN RELOAD BINDINGS ( #787 )
2021-10-09 14:53:23 +08:00
3b3575a14e
[parser] Change hint "enable_plan_cache(bool)" to "ignore_plan_cache()" ( #785 )
2021-10-09 14:53:23 +08:00
d7b93edc66
[parser] parser: recognize BACKUP SNAPSHOT = TSO in additional to 'TIMESTAMP' ( #782 )
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
af3a3c6266
[parser] parser: support set config ... and show config ... syntaxes ( #770 )
...
* support 'set config ...' and 'show config ...' syntaxes
* address comments
* address comment
* address comment
2021-10-09 14:53:23 +08:00
58f9e70de7
[parser] *: support parsing BACKUP and RESTORE statements ( #746 )
...
* *: support parsing BACKUP and RESTORE statements
* parser: add SNAPSHOT = 'str' option to BACKUP statement
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
1f323f3aa7
[parser] *: Add format_bytes and format_nano_time function ( #754 )
...
* add Performance Schema Functions format_bytes and format_nano_time
Signed-off-by: gauss <gauss1314@gmail.com >
* remove a test case
Signed-off-by: gauss <gauss1314@gmail.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
e437ae67a8
[parser] parser, ast: accept syntax about chain, release when commit or rollback ( #751 )
...
* add CompletionType in CommitStmt and RollbackStmt
* refine CompletionType in ast
* fix typo in parser.y
* add parser test for ROLLBACK
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
46600d4798
[parser] parser, ast: add SetCollatorExpr ( #749 )
...
This ExprNode is equivalent to the `Item_func_set_collation` in MySQL,
it is used to specify the collation for the result of another
expression.
Co-authored-by: tangenta <tangenta@126.com >
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
1539b1f3fe
[parser] parser: support the SELECT ... INTO OUTFILE syntax ( #745 )
...
* SELECT OUTFILE
* fix CI
* update
* add more tests
2021-10-09 14:53:23 +08:00
b1500ed8d3
[parser] support alter instance reload tls ( #740 )
2021-10-09 14:53:23 +08:00
644e72eba2
[parser] add show table $table_name next_row_id syntax ( #738 )
...
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add show table next row id
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
add `show table next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add `show table $table_name next_row_id` syntax
Signed-off-by: zhang555 <4598181@qq.com >
* add syntax
Signed-off-by: zhang555 <4598181@qq.com >
* Merge branch 'master' into mytidb1
Signed-off-by: zhang555 <4598181@qq.com >
# Conflicts:
# parser.go
2021-10-09 14:53:23 +08:00
acf6cb52c0
[parser] *: remove until timestamp syntax in flashback since we not support this ( #733 )
2021-10-09 14:53:23 +08:00