Skip to content

Releases: pingcap/tidb

tidb-server v5.0.6

30 Dec 13:52
6416f8d
Compare
Choose a tag to compare

Bug fixes

  • Fix the panic that might occur when DML and DDL statements are executed concurrently #30940
  • Fix the TiDB panic when executing the ALTER TABLE.. ADD INDEX statement in some cases #27687
  • Fix the issue that the enforce-mpp configuration does not take effect in v5.0.4 #29252
  • Fix the TiDB panic when inserting invalid date values concurrently #25393
  • Fix the unexpected can not found column in Schema column error for queries in the MPP mode #30980
  • Fix the unexpected index out of range error when the planner is doing join reorder #24095
  • Fix the wrong result of CONCAT(IFNULL(TIME(3)) #29498
  • Fix wrong results of GREATEST and LEAST when passing in unsigned BIGINT arguments #30101
  • Fix the issue that a SQL operation is canceled when its JSON type column joins its CHAR type column #29401
  • Fix the data inconsistency issue caused by incorrect usage of lazy existence check and untouched key optimization #30410
  • Fix the issue that window functions might return different results when using a transaction or not #29947
  • Fix the issue that the SQL statements that contain cast(integer as char) union string return wrong results #29513
  • Fix the issue that the Column 'col_name' in field list is ambiguous error is reported unexpectedly when a SQL statement contains natural join #25041
  • Fix the issue that the index out of range [1] with length 1 error is reported when a SQL statement evaluates an aggregation result on the result of join in some cases #1978

tidb-server v4.0.16

17 Dec 08:26
75f81d2
Compare
Choose a tag to compare

Improvements

  • Upgrade the Grafana version from 7.5.7 to 7.5.11

Bug fixes

  • Fix the query panic caused by overflow in the statistics module when converting a range to points for cost estimation #23625
  • Fix wrong results of the control functions (such as IF and CASE WHEN) when using the ENUM type data as parameters of such functions #23114
  • Fix the issue that the GREATEST function returns inconsistent results due to different values of tidb_enable_vectorized_expression (on or off) #29434
  • Fix the panic when applying index join on prefix indexes in some cases #24547
  • Fix the issue that planner might cache invalid plans for join in some cases #28087
  • Fix a bug that TiDB cannot insert null into a non-null column when sql_mode is empty #11648
  • Fix the wrong result type of the GREATEST and LEAST functions #29019
  • Fix the privilege check fail error when performing the grant and revoke operations to grant and revoke global level privileges #29675
  • Fix the panic when using the CASE WHEN function on the ENUM data type #29357
  • Fix wrong results of the microsecond function in vectorized expressions #29244
  • Fix wrong results of the hour function in vectorized expression #28643
  • Fix the issue that optimistic transaction conflicts might cause transactions to block each other #11148
  • Fix the issue of incomplete log information from the auto analyze result #29188
  • Fix the issue that using an invalid default date does not report an error when the SQL_MODE is 'NO_ZERO_IN_DATE' #26766
  • Fix the issue that the Coprocessor Cache panel in Grafana does not display metrics. Now, Grafana displays the number of hits/miss/evict #26338
  • Fix the issue that concurrently truncating the same partition causes DDL statements to stuck #26229
  • Fix the issue that when the CONCAT function has a negative float type argument, the last digit of the argument number is chopped in the result #29417
  • Fix the issue of an extra column in the query result when NATURAL JOIN is used to join multiple tables #29481
  • Fix the issue that TopN is wrongly pushed down to indexPlan when IndexScan uses a prefix index #29711
  • Fix the issue that retrying transactions with the auto-increment columns of DOUBLE type causes data corruption #29892

tidb-server v5.3.0

29 Nov 08:24
4a1b2e9
Compare
Choose a tag to compare

Improvements

  • Show the affected SQL statements in the debug log when the coprocessor encounters a lock, which is helpful in diagnosing problems #27718
  • Support showing the size of the backup and restore data when backing up and restoring data in the SQL logical layer #27247
  • Improve the default collection logic of ANALYZE when tidb_analyze_version is 2, which accelerates collection and reduces resource overhead
  • Introduce the ANALYZE TABLE table_name COLUMNS col_1, col_2, ... , col_n syntax. The syntax allows collecting statistics only on a portion of the columns in wide tables, which improves the speed of statistics collection

Bug Fixes

  • Fix an error that occurs during execution caused by the wrong execution plan. The wrong execution plan is caused by the shallow copy of schema columns when pushing down the aggregation operators on partitioned tables. #27797 #26554
  • Fix the issue that plan-cache cannot detect changes of unsigned flags #28254
  • Fix the wrong partition pruning when the partition function is out of range #28233
  • Fix the issue that planner might cache invalid plans for join in some cases #28087
  • Fix wrong index hash join when hash column type is enum #27893
  • Fix a batch client bug that recycling idle connection might block sending requests in some rare cases #27688
  • Fix the TiDB Lightning panic issue when it fails to perform checksum on a target cluster #27686
  • Fix wrong results of the date_add and date_sub functions in some cases #27232
  • Fix wrong results of the hour function in vectorized expression #28643
  • Fix the authenticating issue when connecting to MySQL 5.1 or an older client version #27855
  • Fix the issue that auto analyze might be triggered out of the specified time when a new index is added #28698
  • Fix a bug that setting any session variable invalidates tidb_snapshot #28683
  • Fix a bug that BR is not working for clusters with many missing-peer regions #27534
  • Fix the unexpected error like tidb_cast to Int32 is not supported when the unsupported cast is pushed down to TiFlash #23907
  • Fix the issue that DECIMAL overflow is missing in the %s value is out of range in '%s'error message #27964
  • Fix a bug that the availability detection of MPP node does not work in some corner cases #3118
  • Fix the DATA RACE issue when assigning MPP task ID #27952
  • Fix the INDEX OUT OF RANGE error for a MPP query after deleting an empty dual table. #28250
  • Fix the issue of false positive error log invalid cop task execution summaries length for MPP queries #1791
  • Fix the issue of error log cannot found column in Schema column for MPP queries #28149
  • Fix the issue that TiDB might panic when TiFlash is shuting down #28096
  • Remove the support for insecure 3DES (Triple Data Encryption Algorithm) based TLS cipher suites #27859
  • Fix the issue that Lightning connects to offline TiKV nodes during pre-check and causes import failures #27826
  • Fix the issue that pre-check cost too much time when importing many files to tables #27605
  • Fix the issue that rewriting expressions makes between infer wrong collation #27146
  • Fix the issue that group_concat function did not consider the collation #27429
  • Fix the result wrong that occurs when the argument of the extract function is a negative duration #27236
  • Fix the issue that creating partition fails if NO_UNSIGNED_SUBTRACTION is set #26765
  • Avoid expressions with side effects in column pruning and aggregation pushdown #27106
  • Remove useless gRPC logs #24190
  • Limit the valid decimal length to fix precision-related issues #3091
  • Fix the issue of a wrong way to check for overflow in plus expression #26977
  • Fix the issue of data too long error when dumping statistics from the table with new collation data #27024
  • Fix the issue that the retried transactions' statements are not included in TIDB_TRX #28670
  • Fix the wrong default value of the plugin_dir configuration 28084

tidb-server v5.2.3

02 Dec 09:09
da1c21f
Compare
Choose a tag to compare

There is no release note for this version.

tidb-server v5.2.2

29 Oct 02:36
da1c21f
Compare
Choose a tag to compare

Improvements

  • Show the affected SQL statements in the debug log when the coprocessor encounters a lock, which is helpful in diagnosing problems #27718
  • Support showing the size of the backup and restore data when backing up and restoring data in the SQL logical layer #27247

Bug Fixes

  • Fix the issue that plan-cache cannot detect changes of unsigned flags #28254
  • Fix the wrong partition pruning when the partition function is out of range #28233
  • Fix the issue that planner may cache invalid plans for join in some cases #28087
  • Fix wrong index hash join when hash column type is enum #27893
  • Fix a batch client bug that recycling idle connection may block sending requests in some rare cases #27688
  • Fixed the TiDB Lightning panic issue when it fails to perform checksum on a target cluster #27686
  • Fix wrong results of the date_add and date_sub functions in some cases #27232
  • Fix wrong results of the hour function in vectorized expression #28643
  • Fix the authenticating issue when connecting to MySQL 5.1 or an older client version #27855
  • Fix the issue that auto analyze might be triggered out of the specified time when a new index is added #28698
  • Fix a bug that setting any session variable can make tidb_snapshot unwork #28683
  • Fix a bug that BR is not working for clusters with many missing-peer regions #27534
  • Fix the unexpected error like tidb_cast to Int32 is not supported when the unsupported cast is pushed down to TiFlash #23907
  • Fix the issue that DECIMAL overflow is missing in the %s value is out of range in '%s'error message #27964
  • Fix a bug that the availability detection of MPP node does not work in some corner cases #3118
  • Fix theDATA RACE issue when assigningMPP task ID #27952
  • Fix the INDEX OUT OF RANGE error for a MPP query after deleting an empty dual table. #28250
  • Fix the issue of false positive error log invalid cop task execution summaries length for MPP queries #1791
  • Fix the issue of error log can not found column in Schema column for MPP queries #28149
  • Fix the issue that TiDB might crash when TiFlash shuts down #28096
  • Remove the support for insecure 3DES (Triple Data Encryption Algorithm) based TLS ciphersuites #27859
  • Fix the issue that Lightning connects to offline TiKV nodes during pre-check and causes import failures #27826
  • Fix the issue that pre-check cost too much time when importing many files to tables #27605
  • Fix the issue that rewriting expressions makes between infer wrong collation #27146
  • Fix the issue that group_concat function did not consider the collation #27429
  • Fix the issue that extract function gives wrong results when argument is a negative duration #27236
  • Fix the issue that creating partition fails if NO_UNSIGNED_SUBTRACTION is set #26765
  • Avoid expressions with side effects in column pruning and aggregation pushdown #27106
  • Remove useless GRPC log in production #24190
  • Limit the valid decimal length to fix precision-related issues #3091
  • Fix the issue of a wrong way to check for overflow in plus expression #26977
  • Fix the issue of data too long error when dumping statistics from the table with new collation data #27024
  • Fix the issue that the retried transactions' statements are not included in TIDB_TRX #28670

tidb-server v5.1.3

03 Dec 09:13
dc07933
Compare
Choose a tag to compare

There is no release note for this version.

tidb-server v5.1.2

27 Sep 02:44
dc07933
Compare
Choose a tag to compare

Improvements

  • Trigger auto-analyze by histogram row count, increase the accuracy of this trigger action #24237
  • Push down mod() to TiFlash, increase the query performance. #2318

Bug Fixes

  • Fix the potential wrong results of index hash join when the hash column is in the ENUM type #27893
  • Fix a batch client bug that recycle idle connection may block sending requests in some rare cases #27678
  • Fix the compatibility issue of the overflow check by keeping the same logic as MySQL #23897
  • Fix the issue that TiDB returns an unknow error while it should return the pd is timeout error #26147
  • Fix the error of the case when function caused by the wrong charset and collation #26662
  • Fix the issue that greatest(datetime) union null returns an empty string #26532
  • Fix the potential can not found column in Schema column error for MPP queries #28148
  • Fix a bug that TiDB may panic when TiFlash is shutting down #28096
  • Fix the issue of wrong range caused by using enum like 'x%' #27130
  • Fix the issue that the between expression infers wrong collation. #27146
  • Fix the Common Table Expression (CTE) dead lock issue when used with IndexLookupJoin #27410
  • Fix a bug that retryable deadlocks are incorrectly recorded into the INFORMATION_SCHEMA.DEADLOCKS table #27400
  • Fix a bug that GROUP_CONCAT function does not consider the collation #27429
  • Fix a bug that the COUNT(DISTINCT) function on multiple columns returns wrong results when New Collation is on #27091
  • Fix an issue that the TABLESAMPLE query result from partitioned tables is not sorted as expected #27349
  • Fix a bug that the EXTRACT function returns wrong results when the argument is a negative duration #27236
  • Remove the unused /debug/sub-optimal-plan HTTP API #27265
  • Fix the issue that a wrong selection is pushed down when the HAVING condition is used in the aggregate function #26496
  • Fix a bug that the query may return wrong results when the hash partition table deals with unsigned data #26569
  • Fix the unexpected behavior when casting an invalid string to DATE #26762
  • Fix a bug that creating partition fails if NO_UNSIGNED_SUBTRACTION is set #26765
  • Fix the issue that the distinct flag is missing when Apply is converted to Join #26958
  • Fix the issue that NO_ZERO_IN_DATE does not work on the default values #26766
  • Set a block duration for the newly recovered TiFlash node to avoid blocking queries during this time #26897
  • Fix a bug that might occur when the CTE is referenced more than once #26212
  • Fix a CTE bug when MergeJoin is used #25474
  • Fix a bug that the 'SELECT FOR UPDATE' statement does not correctly lock the data when a normal table joins a partition table #26251
  • Fix the issue that the 'SELECT FOR UPDATE' statement returns an error when a normal table joins a partition table #26250
  • Fix the issue that PointGet does not use the lite version of resolve lock #26562

tidb-server v4.0.15

27 Sep 01:46
fc92ef9
Compare
Choose a tag to compare

Compatibility changes

  • Fix the issue that executing SHOW VARIABLES in a new session is slow. This fix reverts some changes made in #21045 and might cause compatibility issues. #24326

Improvements

  • Trigger auto-analyze based on the histogram row count #26706

Bug fixes

  • Fix a bug that collation is incorrectly set for binary literals when building range 26455
  • Fix the issue of wrong character set and collation for the case when expression #26671
  • Fix the "index out of range" error that occurs when a query includes both GROUP BY and UNION 26553
  • Fix the issue that TiDB might fail to send requests if TiKV has tombstone stores #25849
  • Fix the issue of unexpected behavior when casting the invalid string to DATE #27935
  • Fix the issue that column information is missed when converting the Apply operator to Join #27282
  • Fix a bug that the count distinct result on multiple columns is wrong when the new collation is enabled #27830
  • Fix the result wrong that occurs when the argument of the extract function is a negative duration #27236
  • Fix the wrong execution results that occur when the column in the group_concat function has a non-bin collation #27429
  • Fix the wrong execution results that occur when the collations around the between expression are different #27146
  • Fix the issue that greatest(datetime) union null returns empty string #26564
  • Fix the issue that the having clause might not work correctly #26496
  • Remove the undocumented /debug/sub-optimal-plan HTTP API #27264

tidb-server v5.2.1

09 Sep 10:06
cd8fb24
Compare
Choose a tag to compare

Bug Fixes

  • Fix an error that occurs during execution caused by the wrong execution plan. The wrong execution plan is caused by the shallow copy of schema columns when pushing down the aggregation operators on partitioned tables. #27797 #26554

tidb-server v5.0.5

02 Dec 14:35
53251a9
Compare
Choose a tag to compare

There is no release note for this version.