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
e8f3953b02
[parser] Changed typo "stetement" to "statement" in parser.y ( #956 )
2021-10-09 14:53:23 +08:00
8dc1467a7f
[parser] correct calculation of field lengths for Enum and Set types ( #954 )
...
* fix invalid enum flen
* fix invalid set flen
* address comments
2021-10-09 14:53:23 +08:00
8fcee19e85
[parser] parser: append replica-only state to previous one strictly ( #952 )
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
e3d69d0cf0
[parser] quickstart.md: get dependency with git hash instead of version tag ( #948 )
...
* docs/quickstart.md: fetch dependency with git hash instead of version tag
* address comment
* Update docs/quickstart.md
Co-authored-by: kennytm <kennytm@gmail.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
a1997e6b2a
[parser] add config variable to control max display length ( #949 )
2021-10-09 14:53:23 +08:00
314dd77cd0
[parser] parser: substitute state field with addingDefinition in partitionInfo ( #947 )
2021-10-09 14:53:23 +08:00
24b21ed295
[parser] terror: add terror api to support add and product error workaround automaticly ( #930 )
...
* add error code add workaround api
* add description
* add description
* Update terror/terror.go
Co-authored-by: kennytm <kennytm@gmail.com >
* address comment
* address comment
* move errCodeMap into New
* address commney
* fix fmt
Co-authored-by: kennytm <kennytm@gmail.com >
Co-authored-by: lysu <sulifx@gmail.com >
Co-authored-by: bb7133 <bb7133@gmail.com >
2021-10-09 14:53:23 +08:00
63da8aaba0
[parser] fix: remove TypeDecimal ( #944 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
2021-10-09 14:53:23 +08:00
3110c880b1
[parser] parser: create integer type field with specified length should have warings ( #939 )
...
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
* .
Signed-off-by: AilinKid <314806019@qq.com >
2021-10-09 14:53:23 +08:00
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
53b1520d57
[parser] fix: remove warning for "REORGANIZE PARTITION" ( #605 ) ( #924 )
...
Note that in commit fdfeac in pingcap/tidb the errror was already handled.
Need to do nothing.
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
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
8b78e03aa6
[parser] parser: add a state field for partitionDefinition ( #927 )
...
* add schema state for partition definition
Signed-off-by: AilinKid <314806019@qq.com >
* add clone function
Signed-off-by: AilinKid <314806019@qq.com >
* change value copy to slice element self
Signed-off-by: AilinKid <314806019@qq.com >
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
9973ce7e1f
[parser] model: add a Global field to IndexInfo ( #917 )
...
Co-authored-by: tangenta <tangenta@126.com >
Co-authored-by: kennytm <kennytm@gmail.com >
2021-10-09 14:53:23 +08:00
faaef33f76
[parser] fix: remove warning in parser for rebuild/check/optimize/repair partition ( #920 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
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
7589d60ccb
[parser] fix: remove warning in "remove partitioning" ( #914 )
...
Signed-off-by: Wang Ruichao <wangruichao2014@xiaochuankeji.cn >
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
672f8b3ed5
[parser] docs: rewrite quickstart.md ( #884 )
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
b3c477a7c0
[parser] model: add OriginDefaultValueBit field to ColumnInfo ( #904 )
...
* model: add OriginDefaultValueBit field for ColumnInfo
* add test for column default value
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
1bbc918016
[parser] model: correct the usage of json.Unmarshal in DecodeArgs ( #890 )
2021-10-09 14:53:23 +08:00