aa002f28a2
*: show cmd to check if all needed histograms are loaded ( #29672 )
2021-12-10 13:45:57 +08:00
35f4816d5a
planner: rename duplicated anonymous columns when creating view ( #29895 )
...
* planner: rename duplicated anonymous columns when creating view
* add some tests
* modify test
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io >
2021-11-19 15:37:24 +08:00
a3f3924388
parser: support analyze/stats options when create/alter table ( #29056 )
2021-10-27 14:54:49 +08:00
fce1a03e40
parser: analyze predicate/user-specified columns and show column_stats_usage ( #28846 )
2021-10-18 16:52:43 +08:00
94e30df8e2
parser: fix compiling, add unit tests ( #28700 )
2021-10-11 23:15:25 +08:00
5e670662e4
[parser] *: support select for update of tables ( #1333 )
2021-10-09 14:53:23 +08:00
75e85369d7
[parser] parser: fix some parse error for parenthese subqueries ( #1255 )
2021-10-09 14:53:23 +08:00
a4d223e7b7
[parser] parser: Support statement 'SHOW PLACEMENT LABELS' ( #1303 )
2021-10-09 14:53:23 +08:00
51f948424c
[parser] parser: support show create placement policy ( #1298 )
2021-10-09 14:53:23 +08:00
238f29681c
[parser] parser: support show placement ... syntax ( #1292 )
...
* parser: support `show placement ...` syntax
* Add parser.go
2021-10-09 14:53:23 +08:00
eedf0439ca
[parser] *: fix cte restore for binding ( #1244 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
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
2025bc4d3e
[parser] ast: make AsOf node be accepted ( #1226 )
...
* ast: make AsOf node be accepted
Signed-off-by: nolouch <nolouch@gmail.com >
2021-10-09 14:53:23 +08:00
434ae88964
[parser] ast: add resultSetNode() to ResultSetNode ( #1216 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
c72868080c
[parser] fix CTE parser ( #1217 )
...
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com >
2021-10-09 14:53:23 +08:00
6a97668216
[parser] ast: visit Join.Using in Join.Accept ( #1214 )
2021-10-09 14:53:23 +08:00
b6c5ada1d5
[parser] *: add as of clause for SET and SELECT ( #1206 )
...
* *: add as of clause
Signed-off-by: nolouch <nolouch@gmail.com >
* resolve shift-reduce conflict
* *: fix and try to add test
Signed-off-by: nolouch <nolouch@gmail.com >
* *: add timestamp
Signed-off-by: nolouch <nolouch@gmail.com >
* make as of to token
Signed-off-by: nolouch <nolouch@gmail.com >
* address comments
Signed-off-by: nolouch <nolouch@gmail.com >
* add test
Signed-off-by: nolouch <nolouch@gmail.com >
* make of as Reserved(from mysql 8.0)
Signed-off-by: nolouch <nolouch@gmail.com >
* add set test case
Signed-off-by: nolouch <nolouch@gmail.com >
* address comment
Signed-off-by: nolouch <nolouch@gmail.com >
Co-authored-by: tangenta <tangenta@126.com >
2021-10-09 14:53:23 +08:00
ccf996259d
[parser] support CTE clause ( #1207 )
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
cead7b3c5d
[parser] parser: support show stats_extended syntax ( #1178 )
2021-10-09 14:53:23 +08:00
10b601cc69
[parser] restore: fix the bug about restore join table generate syntax error SQL ( #1173 )
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
df2a55a4cc
[parser] parser: compatible with select...for share statement ( #946 )
...
* parser: compatible with `select...for share` statement
* parser: parse `LOCK IN SHARE MODE` into `FOR SHARE` and support `NOWAIT` & `SKIP LOCKED`
* merge master
* SelectLockType.String() returns string only
* update parser_test.go
* resolve conflicts
2021-10-09 14:53:23 +08:00
78d16b53a2
[parser] ast, parser: fix parse join ( #1129 )
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
0529fa31aa
[parser] parser: add grammar show stats_topn ( #1109 )
2021-10-09 14:53:23 +08:00
7a252afa7b
[parser] parser, ast: track if order is implicit ASC/DESC ( #1101 )
...
* Add nillable type of byitem
* parser, ast: track if order is implicit ASC/DESC
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2021-10-09 14:53:23 +08:00
edd59ca073
[parser] *: add a flag RestoreWithDefaultDB for Restore ( #1105 )
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
c7f93089c6
[parser] goyacc: record the original text position in AST ( #984 )
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
fbe75839dc
[parser] parser: fix select field for set operator query ( #1035 )
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
4a04e063a6
[parser] support select for update wait seconds grammar ( #997 )
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
8f8575ddf5
[parser] parser: support set operator EXCEPT and INTERSECT ( #916 )
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
bcc3e3b2d2
[parser] parser: support TableOptimizerHints in InsertStmt ( #845 )
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
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
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
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
6eb2909901
[parser] change all dot import, according to staticcheck ( #730 )
...
* change all dot import, according to staticcheck
* make staticcheck happy
2021-10-09 14:53:23 +08:00
6721fea8cf
[parser] add show create sequence ( #681 )
2021-10-09 14:53:23 +08:00
194335f65f
[parser] model: add hidden to ColumnInfo ( #621 )
...
* add hidden
* make codecov happy
* support extended
* clean code
* address comment
* tweak
* address comment
2021-10-09 14:53:23 +08:00
99d1a794b6
[parser] Add Cloud Spanner style read only transaction ( #610 )
...
* Add Cloud Spanner style read only transaction
* Put non keywords to the right place
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com >
2021-10-09 14:53:23 +08:00
cc817e1324
[parser] *: Support full-text search ( #592 )
...
add MATCH(col1,col2,...) AGAINST(expr [search_modifier]) syntax support
2021-10-09 14:53:23 +08:00
9b11c3d2ad
[parser] revert pr 587 failed to parse WHERE / GROUP BY clauses in a SELECT statement without a FROM table ( #597 )
2021-10-09 14:53:23 +08:00