Commit Graph

127 Commits

Author SHA1 Message Date
dc30a5b7b3 *: LOAD DATA support load one file from s3 and other OSS (#40489)
ref pingcap/tidb#40499
2023-01-18 15:27:51 +08:00
971deb6202 *: add a new I_S table and support show create for resource groups (#40665)
close pingcap/tidb#39781
2023-01-17 23:37:49 +08:00
b912237ac7 planner: support keep_order and no_keep_order hint (#40089)
ref pingcap/tidb#39964
2023-01-09 21:42:22 +08:00
702a5598f9 ddl, parser: make generated column and expression index same as MySQL (#39888)
close pingcap/tidb#39826
2022-12-30 20:20:17 +08:00
84fa999186 txn: support multi-table join in nt-dml (#39139)
ref pingcap/tidb#33485
2022-11-24 14:33:58 +08:00
238caf6571 *: add statistic lock/unlock function (#38387) 2022-11-11 22:25:54 +08:00
d7bd49a457 session: support non-transactional insert statements (#38799)
ref pingcap/tidb#33485
2022-11-04 02:28:00 +08:00
xhe
4f5eafd721 *: fix restore error typo (#38578) 2022-10-20 17:11:54 +08:00
e48f35751f session: refactor non-transactional DML to make it ready for more DML types (#38197)
ref pingcap/tidb#33485
2022-10-19 17:35:53 +08:00
150813dd86 preprocessor, planner: inline processing by default for single-consumer cte (#37800) 2022-09-29 00:09:40 +08:00
3f85f8e4ed Compatibility: SQL_SELECT_LIMIT worked in show statement; (#33696)
close pingcap/tidb#33407
2022-09-28 13:19:45 +08:00
d6d0ce7b10 *: gofmt code for adapting go 1.19 (#36832)
ref pingcap/tidb#36879
2022-08-11 12:50:49 +08:00
158ba1a1d9 *: enable part revive for all code (#36703) 2022-08-01 14:02:06 +08:00
5d4745e9d4 parser, executor: support show/set session_states (#35263)
close pingcap/tidb#35259
2022-06-10 15:24:31 +08:00
79938e695c dml: support for show count(*) warnings | errors (#34721)
close pingcap/tidb#25068
2022-05-23 15:50:46 +08:00
d830900c98 session: use batch as the keyword for non-transactional DML (#34467)
ref pingcap/tidb#33485
2022-05-11 15:04:35 +08:00
fa5e19010b planner: preprocessor add CTE recursive check when handleTableName (#34133)
close pingcap/tidb#34090
2022-05-06 15:24:56 +08:00
3cf6b08e6b parser: skip restoring schema name of CTE table columns (#33991)
close pingcap/tidb#33965
2022-04-18 22:48:03 +08:00
645ae1ce19 *: implement non-transactional delete (#33736)
ref pingcap/tidb#33485
2022-04-15 20:06:36 +08:00
59fac2abab planner: fix the join scope with explicit parents (#33311)
close pingcap/tidb#31770
2022-03-25 11:32:34 +08:00
9bc9572754 planner: add the functional dependency for Datasource, proj, select, agg (#33071)
ref pingcap/tidb#29766
2022-03-17 20:02:30 +08:00
d79527b256 bindinfo: support 'show binding_cache status' (#32567)
ref pingcap/tidb#32466
2022-03-15 14:27:52 +08:00
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
xhe
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
xhe
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