Commit Graph

102 Commits

Author SHA1 Message Date
7fbc069889 planner: update planner test cases to use plan_tree to avoid unnecessary code changes caused by estimation update (#63207)
ref pingcap/tidb#63118
2025-08-27 01:56:42 +00:00
a634b983c5 fix: close issue #59428 to sec_to_time binary same as mysql (#62239)
close pingcap/tidb#59428
2025-08-06 01:00:48 +00:00
2f4f559b83 fix: close issue 59446 make oct("") same as mysql (#61767)
close pingcap/tidb#59446
2025-07-15 02:10:51 +00:00
9accc3cfa3 planner: Fix expression rewriting and method signature mismatch in plan cache (#58506)
close pingcap/tidb#56772
2025-07-08 05:01:27 +00:00
063fa72687 planner: lift the can-push-to-cop check of aggregation/proj (#62068)
ref pingcap/tidb#62006
2025-07-03 13:35:00 +00:00
b3fbdc6e9c planner: lift can-push-to-cop check of expand/unionall/sort. (#62005)
ref pingcap/tidb#62006
2025-06-28 08:46:33 +00:00
e4df3b0671 planner: use logical rule to eliminate the dual child item in unionAll and clean code in physical phase. (#61703)
ref pingcap/tidb#51664
2025-06-19 09:47:51 +00:00
e7b038b991 expression: deduplicate the args of IN function (#61249)
close pingcap/tidb#61246
2025-05-31 02:22:14 +00:00
73673086c0 expression: introduce new function for JSON array (#60728)
ref pingcap/tidb#60649
2025-05-27 09:58:49 +00:00
7702f73bee expression: Timestamp literal with time zone offset (#57845)
close pingcap/tidb#51742
2025-05-26 02:46:25 +00:00
tpp
61e061e08c planner: selectivity estimate not to go below 1 (#61045)
ref pingcap/tidb#47400
2025-05-13 01:42:12 +00:00
618672f4c3 parser: fix panic when call json_memberof without parameters (#60933)
close pingcap/tidb#60906
2025-04-30 04:33:34 +00:00
9a0413b61a expression: make LPAD/RPAD return an empty string for an empty padstr (#59734)
close pingcap/tidb#59447
2025-03-20 04:12:55 +00:00
8b30027ba7 json, expr: json_search should return NULL when the search path is NULL (#59714)
close pingcap/tidb#59463
2025-02-26 07:00:02 +00:00
fed02515f8 json: fix the issue that two arrays are merged but not append in JSON_ARRAY_APPEND. (#59688)
close pingcap/tidb#59465
2025-02-25 11:37:21 +00:00
4cf94a7446 expression: refine invalid char error msg for string conversion (#59711)
close pingcap/tidb#56706
2025-02-25 09:48:21 +00:00
d93c2336ae json: extract the $[last] entry from json object should also return itself (#59687)
close pingcap/tidb#59619
2025-02-24 04:11:54 +00:00
bec3f6a805 expression: fix incorrect results of json_keys(json, path) with JSONTypeCodeArray as the first argument (#59486)
close pingcap/tidb#56788
2025-02-13 10:31:11 +00:00
b3249598db expression: support timestampdiff pushdown to tikv (#59366)
close pingcap/tidb#59365
2025-02-10 12:37:38 +00:00
c1bb4f7adb expression: Fixing Expression Rewrite Bug in Predicate Push Down for NULLIF with Type Mismatch (#58588)
close pingcap/tidb#57647
2025-01-21 05:14:17 +00:00
c744ea44af json: add json fuzz test for json_extract function and fix several bugs found by it (#58899)
close pingcap/tidb#37806, close pingcap/tidb#58888, close pingcap/tidb#58894, close pingcap/tidb#58895, close pingcap/tidb#58896, close pingcap/tidb#58897
2025-01-14 11:28:04 +00:00
4e6dc7bf30 sessionctx: Remove Query Cache (#58352)
close pingcap/tidb#9156
2024-12-27 20:23:42 +00:00
df4440426b sessionctx: cleanup old InnoDB sysvars (#58357)
close pingcap/tidb#9142
2024-12-27 18:57:18 +00:00
e1c78f239c tests: update mysql-tester and fix some syntax problem (#58464) 2024-12-25 09:35:15 +00:00
e53ec591b2 planner: extend predicate simplification for subquery and nested expressions (#58261)
close pingcap/tidb#58171
2024-12-20 18:59:39 +00:00
85f3f9c0a6 expression: Fix arg validation for tidb_mvcc_info() (#58310)
close pingcap/tidb#58309
2024-12-19 03:57:49 +00:00
edba7e9ccb planner: Add left side operator info for hash join execution summary (#57814)
ref pingcap/tidb#56233, close pingcap/tidb#57819
2024-12-03 09:11:47 +00:00
06c6e400bd expression: fix wrong calculation order of radians (#57672)
close pingcap/tidb#57661, close pingcap/tidb#57671
2024-11-25 11:22:47 +00:00
2ff351db25 executor: fix incorrect result produced by addtime() or subtime() function when using the date type (#57337)
close pingcap/tidb#56861
2024-11-20 16:53:32 +00:00
db4d19bb84 expression: fix the arg verification for json functions. (#54145)
close pingcap/tidb#54029, close pingcap/tidb#54044
2024-11-20 16:00:41 +00:00
38104f4f32 expression: fix tikv crash when bool like cast(bit as char) (#57484)
close pingcap/tidb#56494
2024-11-20 08:43:53 +00:00
14e99eab84 Revert "util: fix codec for negative zero (#57343)" (#57525)
ref pingcap/tidb#57500
2024-11-20 05:19:57 +00:00
1b6d01b60a expression,json: make the behavior of JSON_VALID consistent (#57496)
close pingcap/tidb#56293
2024-11-19 09:28:36 +00:00
9512c9630e expression: round the frac part for ParseTimeFromFloat64 (#56340)
close pingcap/tidb#56339
2024-11-18 11:54:20 +00:00
4272a56eeb expression: fix incorrect copy of flag in truncate function (#55284)
close pingcap/tidb#53546
2024-11-15 14:30:44 +00:00
9b2656951d util: fix codec for negative zero (#57343)
close pingcap/tidb#41878
2024-11-15 11:47:32 +00:00
42751959a3 config: Make deprecate-integer-display-length default to true (#56529)
close pingcap/tidb#17682, close pingcap/tidb#56533
2024-10-22 09:09:53 +00:00
d011ecd7e5 expression: fix errors set utc_timestamp precision (#56453)
close pingcap/tidb#56451
2024-10-22 04:26:00 +00:00
e017e1bc4c expression: use maximum length for integer display (#56463)
close pingcap/tidb#45338, close pingcap/tidb#56462
2024-10-14 12:54:49 +00:00
698f54f45a expression: remove unnecessary warnings for AND/OR expressions (#56482)
close pingcap/tidb#56481
2024-10-09 06:12:28 +00:00
fbcb35cd3d expression: handle invalid date time properly (#56461)
close pingcap/tidb#56460
2024-10-08 02:08:07 +00:00
f399e91cf8 expression: Fix warnings for FORMAT() in CTE (#56198)
close pingcap/tidb#56193
2024-09-26 10:57:15 +00:00
e0864c6cf1 expression: let cast function supports explicit set charset (#55724)
close pingcap/tidb#55677
2024-09-10 10:25:23 +00:00
9690dab339 expression: Support 2 argument version of MID() (#55541)
close pingcap/tidb#52420
2024-08-22 02:54:13 +00:00
628b7ed673 planner: deprecate index lookup merge join. (#54681)
close pingcap/tidb#54064
2024-07-25 07:48:05 +00:00
e209c7dafb expression: fix the type of casting YEAR as json (#54146)
ref pingcap/tidb#54027, close pingcap/tidb#54494
2024-07-09 09:40:33 +00:00
0f81cea72c config: Change tidb_opt_projection_push_down default value to true (#53831)
ref pingcap/tidb#51876
2024-07-08 08:36:03 +00:00
9d6bca4b2e parser,types: Fix error for JSON max depth (#54237)
ref pingcap/tidb#54207
2024-06-28 10:56:54 +00:00
5b1a3d1e9e expression: Return non-retryable error for schema errors (#54278)
close pingcap/tidb#54273
2024-06-28 03:34:23 +00:00
d1080e57a0 planner: remove the same projection when to InjectExtraProjection (#54163)
close pingcap/tidb#54123
2024-06-24 16:40:21 +00:00