Release date: June 3, 2025
Major version: V5.4.12
Minor version: 17489306
Category | Description |
Bug fixes | Fixed an issue where the SemiJoinProjectTransposeRule caused SQL errors. |
Fixed an issue where the TRUNCATE function returned incorrect results when the first N digits were all zeros. |
Fixed an infinite loop in the JoinPushTransitivePredicatesRule. |
Release date: February 7, 2025
Major version: V5.4.12
Minor version: 17388953
Category | Description |
Bug fixes | Fixed an issue where the combination of the BKAJoin and SortMergeJoin operators caused an incomplete result set when the join match returned many results. |
Fixed an issue where the JOIN operation could not be pushed down when an aggregate (AGG) operation was fully pushed down in a Cost-Based Optimization (CBO) scenario. |
Fixed an issue that caused occasional disorder when correlated items were pushed down in a column subquery. |
Release date: October 10, 2024
Major version: V5.4.12
Minor version: 17285407
Category | Description |
Bug fixes | Fixed an issue that caused data inconsistency in a broadcast table when the table was modified by an UPDATE statement whose WHERE clause contained a subquery on a non-sharded table. |
Release date: September 18, 2024
Major version: V5.4.12
Minor version: 17266518
Category | Description |
Bug fixes | Fixed an issue where the optimizer performed reranking when executing an INNER JOIN or OUTER JOIN statement, which led to unexpected results. |
Release date: August 18, 2024
Major version: V5.4.12
Minor version: 17239431
Category | Description |
Bug fixes | Fixed an issue where the search space of the TopDown optimizer was incomplete. |
Release date: July 30, 2024
Major version: V5.4.12
Minor version: 17223079
Category | Description |
Bug fixes | Fixed an issue where different values could be assigned to a column with the ON UPDATE CURRENT_TIMESTAMP attribute in different shards when a pushdown-able DML statement was executed on a broadcast table. |
Fixed a precision loss issue when updating a column with the ON UPDATE CURRENT_TIMESTAMP attribute. |
Fixed a data inconsistency issue when a DML statement containing the RAND() function was executed on a broadcast table. |
Release date: April 28, 2024
Major version: V5.4.12
Minor version: 17142690
Category | Description |
Bug fixes | Fixed an issue where duplicate trace IDs or transaction IDs (TXIDs) appeared in multi-statement scenarios. |
Fixed an issue where automatic collection of performance statistics could not be automatically terminated after the O&M window ended. |
Release date: February 18, 2024
Major version: V5.4.12
Minor version: 17082300
Category | Description |
Optimizations | Optimized the creation logic for metadata queries to reduce dependencies.
|
Bug fixes | Fixed an occasional error that occurred during high-concurrency BKA join operations. |
Fixed an issue where join matching became disordered when a subquery had three or more correlated items.
|
Fixed an occasional transaction leak that occurred when a connection was killed.
|
Release date: December 6, 2023
Major version: V5.4.12
Minor version: 17018434
Category | Description |
Bug fixes | Fixed an issue where UPSERT statements did not update CURRENT_TIMESTAMP in specific cases. |
Fixed an issue where an error was reported in some execution modes when the order by and partition by fields in a window function were empty. |
Removed the item limit from materialized semi-joins. |
Fixed a parameterization error that occurred when a multi-column IN query contained a HEX expression. |
Fixed an issue where TableScanExec occasionally stopped prematurely in some merge sort scenarios. |
Fixed an issue where table names in subqueries were not correctly replaced in single-table UPDATE statements. |
Fixed an issue where a table was not found when accessing a view across databases. |
Fixed an issue where the json_extract function incorrectly returned the string "NULL" when extracting a non-existent attribute. |
Fixed an issue where the error "Sql could not be implemented" was reported when using order by in a window function. |
Fixed an issue where the Date_format() function incorrectly formatted the millisecond or microsecond part of a fractional value. |
Fixed an issue where the date_add function returned an incorrect calculation. |
Fixed an issue where the return type and result of the AES_DECRYPT function were inconsistent with those of MySQL. |
Release date: November 9, 2023
Major version: V5.4.12
Minor version: 16995379
Category | Description |
Bug fixes | Fixed an issue where the optimizer reported an error due to a semantic validation exception when a DML statement contained a view. |
Fixed an issue where converting a subquery to a semi-join could cause a query error in some scenarios. |
Release date: August 11, 2023
Major version: V5.4.12
Minor version: 16917477
Category | Description |
Bug fixes | Fixed an issue where data was incorrect when a case when expression was executed in vectorized mode. |
Release date: June 19, 2023
Major version: V5.4.12
Minor version: 16871653
Category | Description |
New features and optimizations | Upgraded fastjson to version 1.2.82. |
Added a switch to prevent high CPU utilization caused by many IN queries. |
Bug fixes | Fixed an occasional ConcurrentModifyError that occurred when a schema appeared during a parallel connection. |
Fixed an issue where permission checks were incorrect when creating a nested view. |
Release date: May 15, 2023
Major version: V5.4.12
Minor version: 16841435
Category | Description |
Bug fixes | Fixed an issue where the execution plan was suboptimal because the optimizer selected the wrong index during a BKA join. |
Fixed an issue where the show stc command returned an empty database name. |
Release date: April 28, 2023
Major version: V5.4.12
Minor version: 16826508
Category | Description |
Bug fixes | Fixed an issue where an incorrect execution plan was generated for a multi-table JOIN because the database shard key and table shard key were not distinguished. |
Fixed an error that occurred when the optimizer converted aggregate functions in some scenarios. |
Release date: January 13, 2023
Major version: V5.4.12
Minor version: 16734968
Category | Description |
Optimizations | Adjusted the display scope of the show ddl command to the database level. |
Bug fixes | Fixed an issue where the unix_timestamp function returned an incorrect calculation. |
Fixed an issue where the hex and to_base64 functions incorrectly parsed binary variables. |
Fixed a cleanup issue with spm params under high concurrency. |
Release date: October 26, 2022
Major version: V5.4.12
Minor version: 16667451
Category | Description |
Bug fixes | Fixed an issue where the ShowRule command displayed incorrect information for the database sharding function. |
Release date: October 19, 2022
Major version: V5.4.12
Minor version: 16661390
Category | Description |
New features and optimizations | Optimized the physical SQL for Apply subqueries that are fully pushed down. |
Added support for an independent sync thread pool. |
Bug fixes | Fixed a type matching error that occurred when the order of the Update list in an UPSERT statement was different from the table definition. |
Fixed an issue where the agg node could not be pushed down in some scenarios during the Cost-Based Optimizer (CBO) phase. |
Fixed a query failure caused by an array-index out of bounds error in HashGroupJoin. |
Fixed a compatibility issue with schema evolution for the performance statistics table. |
Fixed a compatibility issue between PolarDB-X 1.0 and Navicat primary key metadata. |
Release date: September 1, 2022
Major version: V5.4.12
Minor version: 16619921
Category | Description |
New features and optimizations | Added support for shard key value checks in standard insert scenarios for RANGEHASH. |
Bug fixes | Fixed a NullPointerException (NPE) issue when updating multiple tables. |
Fixed a missing shard issue for range queries on closed intervals that span across years using yyyyweek. |
Fixed an issue where the sharding rules for global secondary index (GSI) tables were displayed incorrectly in the output of show create table and show global index. |
Fixed an issue where window functions returned incorrect calculations in certain situations. |
Fixed a parsing issue with the JSON operator -> in expressions. |
Release date: July 4, 2022
Major version: V5.4.12
Minor version: 16569042
Category | Description |
Bug fixes | Fixed an issue where the sum(bigint unsigned) function returned an incorrect type. |
Release date: June 20, 2022
Major version: V5.4.12
Minor version: 16556932
Category | Description |
Optimizations | Optimized the memory usage of the Scan operator during streaming merge sort. |
Bug fixes | Fixed an issue where table names could not be matched for SQL throttling if they were enclosed in backticks (`). |
Fixed an issue where SQL throttling retrieved incorrect configurations when a Distributed Relational Database Service (DRDS) node started. |
Fixed an issue where the client was blocked because no error was returned when an error occurred while SQL throttling was rescheduling a statement for execution (wait_queue_size > 0). |
Fixed an issue where requests were routed to incorrect shards because sharding parameters in the execution plan were tainted. |
Release date: November 3, 2021
Major version: V5.4.12
Minor version: 16359407
Category | Description |
Bug fixes | Fixed an error that occurred when importing data using DTS if the database name contained special characters. |
Release date: October 28, 2021
Major version: V5.4.12 hotfix
Minor version: 16349923
Category | Description |
Add | Clarified the support boundary for the set command. The set command does not currently support calculations that include expressions. |
Optimizations | Optimized the deadlock detection logic to ensure that transactions in a deadlock can be aborted quickly. |
Bug fixes | Fixed a physical connection failure that occurred when a sql_mode setting statement contained an expression. |
Fixed an issue where a physical SQL statement containing a limit clause in a cross-shard scenario returned unexpected results due to the SQL cache. |
Release date: September 14, 2021
Major version: V5.4.12
Minor version: 16315258
Category | Description |
Add. | The optimizer now supports Cascades-style physical property propagation. |
Added support for AES encryption and decryption functions. |
Added a mechanism to automatically kill long-running transactions that block Data Definition Language (DDL) operations. |
Added support for updating a shard key that is the first column of a table and has a time-related data type. |
Optimizations | Optimized the go-sql-driver to be compatible with the 0000-00-00 00:00:00 time format under the prepare protocol. |
Optimized the case sensitivity of index names when creating clustered indexes. |
Optimized transaction visibility for INSERT SELECT statements in some scenarios. |
Optimized the fully parallel execution policy for DDL on sharded tables. |
Optimized the visibility of logical tables during Create/Drop Table operations. |
When you optimize complex DML procedures, an execution stack overflow may occur due to a large volume of data. |
Bug fixes | Fixed an issue where the date_sub function returned an incorrect calculation. |
Fixed a decoding error for high-precision Decimal values in special cases. |
Fixed an issue where a point query that hits an index with a subpart returned excessive data. |
Fixed an error that occurred when a pushdown-able single-table DELETE statement on a broadcast table included a subquery that specified a database name. |
Release date: July 5, 2021
Major version: V5.4.11
Minor version: 16251897
Category | Description |
Add | Added support for the select into outfile statement to export data with a specified separator and format. |
Added support for the show table info from <tablename> statement to view the data volume of each shard. |
Added support for handling data skew using a sampling-based Histogram with TopN. |
Added support for SQL Plan Management (SPM) to select different plans based on different parameter spaces. |
Added support for random physical table names for single tables and broadcast tables. |
The optimizer now supports Cascades search space pruning. |
Added support for AliSQL syntax for flash sale hot spots. |
Added support for information_schema buffer-related system tables: INNODB_BUFFER_POOL_STATS, INNODB_BUFFER_PAGE_LRU, and INNODB_BUFFER_PAGE. |
Added the GENERAL_DYNAMIC_SPEED_LIMITATION parameter to dynamically adjust the speed limit for GSI backfill, checksum, and scale-out. |
Optimizations | Optimized the processing of performance statistics by adding TopN to handle data skew. |
Bug fixes | Fixed the following issues: Compatible with the drds_transaction_timeout system variable, which is now offline. Fixed an issue where the semantics for handling empty characters were inconsistent with MySQL when you import data using load data.
|
Release date: May 26, 2021
Major version: V5.4.10
Minor version: 16219368
Category | Description |
Bug fixes | Fixed the following issues: Sequences were not correctly populated in some scenarios. GSI table data was inconsistent under specific string Collation conditions. The NOW function was not updated promptly in some transaction-related scenarios.
|
Release date: May 7, 2021 (V5.4.10-16202941)
Category | Description |
Bug fixes | Fixed an issue where the traceId was missing from physical SQL statements in some scenarios. |
Release date: April 26, 2021 (V5.4.10-16193390)
Category | Description |
New features | Added support for viewing the SSL connection status using the show global variables like '%ssl%' command. |
Bug fixes | Fixed a potential stack overflow issue that occurred when using a Join Hint and a Limit SQL statement together. Fixed an error caused using the default sql_mode for data backfill when adding a global secondary index (GSI) with ALTER TABLE or executing a ScaleOut command. Fixed an issue where executing the RENAME TABLE command modified physical shard table names in specific scenarios. Fixed an issue where the last_insert_id value was not as expected after inserting multiple rows of data with an INSERT command in some scenarios.
|
Release date: April 9, 2021 (V5.4.10-16179583)
Category | Description |
New features | Added support for GROUPING SETS, ROLLUP, and CUBE syntax to group query results by multiple dimensions. For more information, see Grouping Sets, Rollup, and Cube extensions. Added support for time precision from 0 to 6 digits. For more information, see Fractional Seconds in Time Values. Added support for index recommendation that includes global secondary indexes. Added support for using TSO transactions at the READ COMMITTED isolation level. Added restrictions on Sequence access in read-only instances.
|
Bug fixes | Fixed a metadata exception that occurred when rebuilding a database over the same connection. Fixed an error that occurred during SQL statement execution due to an invalid sql_mode value. Fixed an issue where older Java drivers would disconnect during a MySQL high availability switch. Fixed an error that occurred when executing a DML command with an AGG subquery on multiple tables. Fixed an issue where affected rows was incorrect when a multi-table UPDATE or DELETE involved the same table multiple times. Fixed an issue where a transaction could still be committed after a write to a broadcast table failed under the ALLOW_READ transaction policy. Fixed an issue where partition pruning results were incorrect because the OR condition was missing from the correlated subquery condition derivation result. Fixed an issue where the execution result was incorrect when a multi-statement (SQL statements separated by a semicolon) contained the SET AUTOCOMMIT command. Fixed issues with lost exception propagation and metadata retrieval errors under the PREPARE protocol. Fixed an error in the physical SQL statement that occurred in some cases when executing a statement containing the Interval function. Fixed an issue where a transaction was not released after a DML execution error. Fixed an issue where a subquery full table scan was misjudged, leading to an unreasonable full table scan. Fixed an error caused using backticks in function names. Fixed a NullPointerException (NPE) caused by an index definition referencing a non-existent field during table creation. Fixed an issue where a Sequence did not take effect when an INSERT command was executed after an independent associated Sequence was created for a single table. Fixed an issue where the SHOW VARIABLES statement could not be executed on some clients. Fixed an issue where SHOW PROCESSLIST could not query data in some cases. Fixed a compatibility issue between time types and functions, and improved the processing efficiency of time-type data. Fixed an issue where the number of connections in monitoring was incorrect. Fixed an issue where the CONVERT TO CHARACTER SET in an ALTER TABLE statement could not modify a GSI index table at the same time. Fixed an issue where some PARSER error messages were unclear.
|
Performance optimizations | Optimized the execution of SQL statements that consume large amounts of memory to improve SQL execution speed. Optimized the execution of HashJoin, NLJoin, and SemiHashJoin to run in a streaming fashion, improving execution speed. Optimized the query optimizer's algorithm to eliminate duplicate conditions in JOIN, FILTER, and IN conditions based on the Batched Key Access (BKA) algorithm. Optimized the execution speed of some subqueries.
|
Release date: February 25, 2021 (V5.4.9-16142062)
Category | Description |
New features | By default, executing UPDATE or DELETE statements without a condition is prohibited. |
Bug fixes | Fixed an issue where syntax errors for invalid SQL were not correctly reported in special cases. |
Release date: February 5, 2021 (V5.4.9-16124261)
Category | Description |
New features | |
Bug fixes | |
Release date: January 26, 2021 (V5.4.9-16116300)
Category | Description |
New features | Compatible with the MySQL Collation feature. Added support for several Collations to ensure correct string sorting in SQL statements. For more information, see Collation types. Added support for all MySQL window functions. For more information, see Window functions. Added support for the local index recommendation feature. For more information, see Intelligent index recommendation. Added support for specifying an alias for a single table in a DELETE statement. Added support for ALTER VIEW syntax. Added support for using _binary 'data...' in SQL to represent binary data. Added support for automatic global secondary index selection in JOIN and DML statements. Added support for complex queries within transactions. The PREPARE protocol now supports the UNSIGNED data type.
|
Bug fixes | Fixed an issue where complex JOIN results were incorrect under certain conditions. Fixed an error that occurred when the parameter in the OVER part of a window function was empty. Fixed an error that occurred when executing the BIT_OR function. Fixed an issue where the error message was inaccurate when modifying a shard key on a table without a primary key. Fixed an error caused by not splitting the data packet of a query result when a single row exceeded 16 MB. Fixed an issue where the data backfill progress for a global secondary index was incorrect for a GSI table with an UNSIGNED BIGINT primary key. Fixed an execution error that occurred in some cases when a physical SQL statement contained an alias. Fixed an issue where the ROUND function returned an incorrect result. Fixed an issue where string search functions such as LOCATE and INSTR returned incorrect results. Fixed an issue where the IF function could not be pushed down in some cases.
|
Performance optimizations | Optimized the read request execution policy for broadcast tables to avoid hot spot access caused by routing read requests to a single node. Optimized the PREPARE STATEMENT model to improve performance during the PREPARE phase. Optimized character storage to improve the system's processing efficiency for character types. Optimized the performance of read-only transactions and single-shard write transactions.
|
Release date: December 3, 2020 (V5.4.8-16069335)
Category | Description |
New features | Added support for window functions. For more information, see Window functions. Added support for distributed deadlock detection. Added support for the ROW_COUNT() and FOUND_ROWS() functions. Added support for the MATCH AGAINST function. The WITH QUERY EXPANSION syntax is not supported. Added support for the ENABLE_EXPRESSION_VECTORIZATION parameter, which can be toggled using a custom HINT command. Added support for the GLOBAL_INDEXES and METADATA_LOCK system tables to facilitate the management and maintenance of global secondary indexes. Added support for the SET TRANSACTION ISOLATION LEVEL syntax to set the isolation level for a single statement or transaction. Added support for the START TRANSACTION READ ONLY syntax to set the read/write properties for a single transaction. Added support for value pruning in LookUpJoin to improve JOIN performance.
|
Bug fixes | Fixed an error caused by acquiring connections on the same sharded table multiple times within a transaction. Fixed a NullPointerException (NPE) during SQL execution caused by dirty data generated after deleting a database and then creating a new one with the same name. Fixed an issue where the asynchronous log consumption thread could not exit in some cases. Fixed a connection leak issue caused by some exceptions. Fixed an issue where a connection might be disconnected after some SQL executions failed. Fixed an incompatibility issue with PolarProxy read/write splitting. Fixed an issue that could generate duplicate CONNECTION IDs. Fixed an issue where the index name in a globally unique index error message did not match the actual index name used. Fixed an issue where DDL restrictions with GSIs were not strict enough. Fixed a potential Stack Overflow issue in some cases. Fixed an issue where the result of ORDER BY column ordinal number could be incorrect. Fixed an issue where the error message was inconsistent with MySQL's when a table name exceeded the MySQL length limit during table creation. Fixed an NPE issue when executing a CREATE TABLE LIKE statement. Fixed an NPE issue when using a command containing the auto_increment_increment variable on a read-only instance. Fixed an issue where physical tables with different random suffixes could be left behind after a GSI DDL task was recovered. Fixed an occasional deadlock issue during DDL command execution. Fixed an issue where the system checked only some database shards when using CHECK TABLE to check a single table. Fixed an occasional execution stall during DDL execution when many RDS instances or database shards were present. Fixed a physical SQL conversion error in some ORDER BY scenarios. Fixed an execution plan conversion error in cross-database single-table scenarios. Fixed an issue where the database name was not removed from the physical SQL command in some cross-database single-table scenarios. Fixed an error during route calculation when a NULL value was input into a time-based sharding function. Fixed a Memory Pool leak. Fixed an issue where affected rows was incorrect when multiple VALUES in an INSERT ON DUPLICATE KEY UPDATE statement conflicted with the same row. Fixed an issue where the changed row was incorrectly selected when multiple VALUES in an INSERT ON DUPLICATE KEY UPDATE statement conflicted with multiple overlapping rows in a table with multiple UNIQUE KEYs. Fixed an issue where affected rows was incorrect when a multi-table UPDATE or DELETE involved the same table multiple times. Fixed an issue where UPDATE or DELETE statement parameters were not printed in the TRACE result. Fixed an issue where a subsequent SELECT in the same transaction could not see newly inserted data after an INSERT SELECT was executed. Fixed an error in an UPDATE statement caused by referencing a table with an alias in a subquery in some scenarios. Fixed an issue where DATETIME histogram serialization led to inaccurate range query cost estimation. Fixed slow PARSE performance for extra-long SQL statements due to end-to-end stress testing checks.
|
Performance optimizations | Optimized the pruning algorithm for execution plans of IN VALUES type statements. Optimized the execution of LookUpJoin to use a unified streaming approach. Optimized the global transaction log table by implementing it as a MySQL partitioned table, eliminating performance fluctuations caused by transaction log cleanup. Optimized the executor logic to prevent SQL execution from being stuck for a long time. Optimized the cost estimation model by adding a cost estimation model for streaming operators. Optimized the checks before RENAME TABLE execution to improve overall instance performance. Improved the stability of DDL execution to reduce the probability of DDL execution failure. Optimized the physical SQL used for INSERT conflict detection. Duplicate values in VALUES can be removed in advance. Optimized the partition pruning policy for INSERT conflict detection to avoid full table scans in scenarios with an auto-increment primary key where the UNIQUE KEY includes all shard keys.
|
Release date: October 15, 2020 (V5.4.7-16027425)
Category | Description |
Bug fixes | Fixed an issue where logging on to a PolarDB-X 1.0 database from MySQL using a connection string failed after an instance version upgrade. Upgraded the DRUID version and fixed an issue where PolarDB-X 1.0 could not establish a connection with the backend MySQL due to a task counter leak. Fixed issues related to EXPLAIN concurrent processing. Fixed an issue where a newly created database became unavailable when loading its configuration resulted in an occasional, unrecoverable error. Fixed an issue where LAST_INSERT_ID returned an abnormal result when executing an INSERT statement on a single table. Fixed an error that occurred when explicitly specifying a SEQUENCE on a non-AUTO_INCREMENT column. Fixed an error that occurred when a REPLACE SELECT statement contained an AGG command. Fixed a rare MDL lock leak issue when using the KILL CONNECTION command. Fixed a GSI metadata exception that occurred when upgrading a case-sensitive MySQL storage engine from version 5.4.3 or earlier to 5.4.4 or later. Fixed a rare encoding exception that occurred when SET NAMES failed on a physical connection in a mixed utf8 and utf8mb4 connection encoding scenario. Fixed an exception with JSON fields in an ANALYZE table.
|
Release date: September 14, 2020 (V5.4.7-16000638)
Category | Description |
New features | Added support for using subqueries in DELETE statements. The clause range of the subquery is the same as that of SELECT. Added support for using ORDER BY, LIMIT, or ORDER BY LIMIT in cross-shard DELETE and UPDATE statements. Added support for deleting and updating data in multiple tables across shards. Added support for deleting data from broadcast tables in multi-table deletions. The target table list can include broadcast tables. Added support for using subqueries in UPDATE statements. The clause range of the subquery is the same as that of SELECT, but subqueries are not supported in the SET clause. Added support for updating the shard key field of a logical table with an UPDATE statement. Added support for modifying broadcast tables in multi-table updates. Columns of broadcast tables can appear on the left side of an assignment statement in the SET clause. Added support for not specifying a value for a shard key or unique key in a VALUES clause, or specifying the value as DEFAULT. Added support for modifying the value of a primary key, unique key, or shard key using INSERT ON DUPLICATE KEY UPDATE. Added support for setting the value of any column in a unique key to NULL in a VALUES clause. Added support for duplicate primary keys or unique keys between two rows in a BATCH INSERT statement. Added support for columns with ON UPDATE CURRENT_TIMESTAMP or DEFAULT CURRENT_TIMESTAMP in index tables. Added support for columns of type TIMESTAMP in index tables that either have no DEFAULT VALUE specified or have CURRENT_TIMESTAMP as the DEFAULT VALUE. Added support for the following vectorized expressions: ADD (+), MINUS (-), MULTIPLY (*), and MOD (%) operations for primitive data types such as SHORT, INT, LONG, FLOAT, and DOUBLE. Logical operations (such as AND, OR, NOT) for primitive data types. IS operations for primitive data types. Control flow expressions such as CASE WHEN, IF, and IF NULL. COALESCE expressions.
Added support for the GROUP JOIN operator. Added support for the ENUM data type. Added support for cost estimation of pushdown operators. Added support for automatic determination of SQL workload type. Added support for displaying pushdown operators using EXPLAIN LOGICVIEW. Added support for displaying real-time workload through INFOMATION_SCHEMA.WORKLOAD. Added support for displaying PROCESSLIST, CONSTRAINTS, and VARIABLES information in INFOMATION_SCHEMA. Added support for printing SQL workload type and cost information to the SQL log. Enforced that when creating a global secondary index, the index must include an index name and database sharding rules. An accurate error is reported for secondary index creation statements that do not include these rules. Added support for automatic promotion of GROUP SEQUENCE. Added support for importing data using LOAD DATA syntax.
|
Bug fixes | Fixed issues such as incorrect index usage that could result from an incorrect unique key judgment under an aggregate function. Fixed a potential error when using a SELECT subquery in a non-Java language PREPARE mode. Fixed several potential issues in Massively Parallel Processing (MPP) mode, such as some objects not being able to be serialized. Fixed support issues for ZEROTIME, ZEROTIMESTAMP, ZERODATE, and others. Fixed an issue where no error was reported when a table was created with duplicate columns. Fixed an issue where the returned length of TINYINT was occasionally incorrect. Fixed a global secondary index lock loss issue. Fixed an issue where adding or dropping columns with ALTER TABLE did not take effect in vertical partitioning mode. Fixed an issue where getGeneratedKeys was inaccurate after customizing the auto_increment_increment parameter. Fixed an issue where a read-only instance could be accessed when using a SEQUENCE statement. Fixed an issue where STR_TO_DATE returned an incorrect result for a specified format. Fixed various type and execution errors for multiple expressions.
|
Performance optimizations | Optimized some HASHJOIN execution plans to match the BKAJOIN algorithm, improving query performance. Optimized the MergeSort implementation to resolve the issue of holding too many connections during the merge sort process. Optimized complex query logic to use CBO-based cost estimation for complex query identification. Optimized the MemoryNotEnoughException error message to display USAGE and LIMIT information. Optimized the performance of bulk inserts for TIME-BASED SEQUENCE. Prohibited the use of different sharding functions for the same shard column across database sharding and table sharding.
|
Release date: July 13, 2020 (V5.4.6-15946373)
Category | Description |
New features | Added support for CUBE, ROLLUP, GROUPING, and GROUPING SETS syntax. Added support for a single query to contain multiple aggregate functions with the DISTINCT keyword. Added support for automatic selection of global secondary indexes in scenarios that require returning to the primary table. Added support for using WHERE and ORDER BY syntax with SHOW TRACE and SHOW SLOW. Added support for SHOW COLUMN and SHOW INDEX operations on views. Added support for Functional Dependency.
|
Bug fixes | Fixed an issue where First Value prevented aggregate functions from being pushed down. Fixed an issue where memory objects were not released under the PREPARE protocol. Fixed an exception thrown when executing a SET statement under the PREPARE protocol. Fixed a potential error for non-Java clients under the PREPARE protocol. Fixed an error caused by a primary key validation exception when executing INSERT on a table with a global secondary index in some scenarios. Fixed a global secondary index rollback failure in special cases. Fixed the error message for when the global secondary index check exceeds the error limit. Fixed an issue where the Sequence type was missing when SHOW CREATE TABLE was used on a table with a global secondary index. Fixed the error message for dropping a global secondary index that is being created. Fixed an escaping issue for subsequent statements in a multi-statement that starts with SET. Fixed some parser syntax issues. Fixed an issue with identifiers and aliases containing backticks (`). Fixed a false positive issue with TableMeta primary key reporting. Fixed an UPDATE execution error caused by metadata refresh in some scenarios. Fixed a connection management issue at the RR isolation level. Fixed an issue where ACTIVE_CONNECTIONS in SHOW STATS was inaccurate. Fixed an error in some subquery scenarios. Fixed an issue where OPTIMIZE TABLE was sometimes routed to the secondary database. Fixed an issue where SELECT ... FOR UPDATE statements would go to the secondary database in some modes. Fixed an error in EXPLAIN OPTIMIZER in special cases. Fixed an incorrect routing result for a shard key of Datetime type.
|
Performance optimizations | Optimized the MPP optimization phase by unifying the CBO algorithm for SMP and MPP. Optimized the performance of XA distributed transaction commits. Optimized the error message for unsupported window functions. Optimized the error message for unsupported subqueries in GROUP BY and ORDER BY. Disabled the CREATE TABLE SELECT STATEMENT syntax.
|
Release date: June 11, 2020 (V5.4.5-15917814)
Category | Description |
Bug fixes | Fixed an error caused by a physical SQL statement containing a USE INDEX hint with a specified GSI in some scenarios. Fixed an error caused by referencing a time function expression in ON DUPLICATE KEY UPDATE on a table with a GSI. Fixed an issue where the index value in information_schema.statistics was NULL. Fixed a case-sensitivity issue in information_schema.statistics. Fixed a GSI creation failure caused by an exception in handling table name case in DML statements. Fixed a potential NPE issue when accessing PolarDB-X 1.0 from a non-Java language using PREPARE mode.
|
Release date: May 18, 2020 (V5.4.5-15897682)
Category | Description |
New features | Added support for creating, modifying, and deleting views. Added support for parallel query on a single table. Added support for creating a global secondary index on a table with a primary key of any type. Added support for complex queries on INFORMATION_SCHEMA. Added support for setting the SESSION transaction isolation level. Added support for a preceding COMMENT in EXPLAIN (for example, /* COMMENT*/EXPLAIN …). Added support for hot patch syntax. Added support for the COM_RESET_CONNECTION command in the MySQL protocol. Added support for the SHOW TRANS command to display PROCESS_ID.
|
Bug fixes | Fixed several issues in MySQL 8.0 PREPARE mode. Fixed a type conversion error in SHOW STATS. Fixed an execution plan display exception for logical table names ending in a number. Fixed an error in EXPLAIN OPTIMIZER in some scenarios. Fixed an abnormal return value data type for UPDATE caused by a special table schema. Fixed an error caused by an overly long local index name when adding a multi-column global secondary index. Fixed some type return issues. Fixed an overflow issue caused by excessively large LIMIT and OFFSET values. Fixed an issue with the APPLY executor for some column subqueries. Fixed an issue where high-concurrency, large-batch, multi-statement DML execution could be limited by memory pool allocation and generate an error. Fixed an error with SELECT FROM DUAL WHERE NOT EXISTS….
|
Performance optimizations | Optimized the point write performance for tables with multiple global secondary indexes. |
Release date: April 7, 2020 (V5.4.4-15862314)
Category | Description |
Bug fixes | Fixed an error in INSERT SELECT statements with column subqueries in some scenarios. Fixed an issue where aliases were missing from physical SQL in some scenarios. Fixed an issue where the applied execution plan was ineffective in single logical table scenarios. Fixed a permission issue caused by execution plan caching in some scenarios. Fixed a BKAJoin error caused by shard key case sensitivity. Fixed an issue where BKAJoin did not support MergeUnion. Fixed an error in some DELETE statements with HINTs. Fixed an SPM initialization exception caused by slow AsyncDDL initialization.
|
Release date: March 20, 2020 (V5.4.4-15846983)
Category | Description |
New features | Added support for non-recursive common table expression (CTE) syntax. The SHOW PHYSICAL_PROCESSLIST command now supports WHERE, ORDER BY, LIMIT, and ORDER BY LIMIT. Added support for the BASELINE HELP command. Added support for the EXPLAIN JSON_PLAN [SQL] command, which outputs the physical execution plan in JSON format. The LIKE operator now supports the ESCAPE keyword. Added a switch to control whether DDL-generated physical table names include a random string. Added a switch for coroutines.
|
Bug fixes | Fixed a column alias matching error in HAVING clauses with duplicate subquery names. Fixed an alias matching error for GROUP BY in subqueries. Fixed an ordering issue for non-equi-join correlated items in some scenarios. Fixed an equality filtering issue for enumerated types. Fixed an issue where TINTINT(1)/BIT(1) was displayed as binary when read with a high-version JDBC driver. Fixed an issue where TIMESTAMP was always displayed with 3 digits of sub-second precision. Fixed a conversion issue between TIMESTAMP and TINYINT in some scenarios. Fixed an issue where physical database QPS in SHOW STATS could be inaccurate due to concurrent processing. Fixed a conversion failure error in window function optimization in some scenarios. Resolved a table name confusion issue in parsing and optimization when tables with the same name exist across databases. Fixed an issue where an index was not automatically created for a shard key when it was part of a composite primary key. Fixed an issue where query results from SHOW TABLES and INFORMATION_SCHEMA included tables for which the current user had no permissions. Fixed an issue where changing an AUTO_INCREMENT field via ALTER TABLE reported that the SEQUENCE already existed. Fixed an issue where the query result from INFORMATION_SCHEMA.STATISTICS was incomplete. Fixed a table creation and deletion failure when the table name contained a period (.). Fixed an issue where SHOW COLUMNS did not support cross-SCHEMA queries. Fixed a query error caused by the exception handling mechanism of EXPLAIN OPTIMIZER. Fixed an issue where UPDATE did not support aliases using backticks (`). Fixed an error caused by missing aliases in some multi-table UPDATE scenarios. Fixed an issue where some local indexes from the primary table were missing in the index table when adding a global secondary index.
|
Performance optimizations | Optimized XA and 2PC distributed transaction flows. Flexible transactions are no longer supported. Optimized the DECIMAL data type implementation. Optimized the concurrent execution policy for SQL that scans multiple shards within a transaction. Optimized the performance of SEMIJOIN-type subqueries.
|
Release date: January 16, 2020 (V5.4.3-15791082)
Category | Description |
New features | Added CPU statistics and SQL log metric printing for DML statements. Added the arows attribute to the SQL log, which represents the number of rows affected by all physical DMLs of a logical SQL statement.
|
Bug fixes | Fixed a statistical error in ptc and frows for SQL queries that generate a single physical shard. Fixed a compatibility issue between JOIN HINT and the table-access operator. Fixed an abnormal Filter pushdown by CBO when LIMIT is present. Fixed an issue where an invalid index specified by USE or IGNORE INDEX was incorrectly pushed down to the physical SQL. Fixed Filter pushdown support for subquery ApplyCache.
|
Performance optimizations | |
Release date: January 13, 2020 (V5.4.3-15788850)
Category | Description |
New features | Added automatic index selection for global secondary indexes. For more information, see Use global secondary indexes. Added the ability to restrict candidate global secondary indexes using USE INDEX and IGNORE INDEX. Added the ability to update the shard key of a global secondary index table using an UPDATE statement. Added global secondary index validation. For more information, see CHECK GLOBAL INDEX. Added support for dynamic partition pruning in BKAJOIN. The SHOW PROFILE command now displays the degree of parallelism and TRACEID of the plan. Added support for the SET tx_isolation = ‘…’ syntax.
|
Bug fixes | Fixed an occasional out-of-memory (OOM) issue with cross-database INSERT SELECT. Fixed a case sensitivity issue with performance statistics columns. Fixed an issue where some pushed-down SQL EXPLAIN EXECUTE statements returned an empty result. Fixed result type inference for the LENGTH, IF, and IFNULL functions.
|
Performance optimizations | Improved the stability, usability, and performance of the DDL task engine. Optimized the accuracy of CPU statistics during the execution of a single SQL statement.
|
Release date: November 28, 2019 (V5.4.2-15749091)
Category | Description |
Bug fixes | Fixed an issue where correlated item IDs were lost when the primary table had an AGG and there was a subquery in PROJECT. Fixed an issue where the show stc command was missing dbname and ipport information.
|
Release date: November 22, 2019 (V5.4.2-15744202)
Category | Description |
New features | PolarDB-X 1.0 now supports RDS MySQL 8.0 and PolarDB for MySQL 8.0 instances. Added a feature to analyze the CPU and memory consumption of SQL. Use the SHOW PROFILE [CPU|MEMORY] [FOR QUERY X] command for analysis. SHOW PROCESSLIST now includes CPU and memory consumption information for SQL.
|
Bug fixes | |
Performance optimizations | Optimized BATCH INSERT performance. Optimized global secondary index data backfill to be parallelized, improving backfill speed.
|
Release date: November 7, 2019 (V5.4.1-15731181)
Category | Description |
New features | Added support for creating a global secondary index (CREATE GLOBAL INDEX), creating a globally unique index (CREATE UNIQUE GLOBAL INDEX), and viewing global secondary indexes (SHOW GLOBAL INDEX). For more information, see Use global secondary indexes. Added a feature to dynamically adjust the connection time zone for PolarDB-X 1.0. Added support for logical RENAME TABLE to improve its performance. Added the CREATE SHADOW TABLE syntax to create and associate shadow tables for end-to-end stress testing. Added support for DERIVED subqueries in UPDATE and DELETE statements. Added CBO, JOIN, and AGG pushdown and exchange capabilities. Added SHOW METADATA LOCK to view DRDS METADATA LOCK information. Added support for PLAN MANAGEMENT O&M commands. Added rollback support for CREATE TABLE WITH GLOBAL INDEX and CREATE GLOBAL INDEX. Added a check and prompt for CREATE TABLE and DROP TABLE operations associated with an incomplete global secondary index. Added support for executing SHOW DDL with a specified JOB ID. Added support for non-equi-join condition derivation. Added support for more operators in PARALLEL QUERY.
|
Bug fixes | Fixed a RENAME TABLE error caused by special characters in the table name when the recycle bin is enabled. Fixed an ABORT exception thrown by the PLAN MANAGEMENT thread pool. Fixed an issue where HashAggCursor handled HASHCODE inaccurately for different input types. Fixed a processing issue with BETWEEN and NOT BETWEEN. Fixed a memory statistics issue in HashAggExec. Fixed a function calculation error when writing to broadcast tables. Fixed an error when connecting to the MANAGE PORT with a high-version JDBC driver. Fixed an error caused by including a database name in the conditions of UPDATE and DELETE statements. Fixed an error caused by duplicate column names in the SET part of UPDATE and DELETE statements. Fixed a partition pruning exception caused by LEFT JOIN + IS NULL. Fixed an occasional "not supported" error with INSERT SELECT. Fixed an issue with special characters in global secondary index table names, shard keys, and DDL rollback table names. Fixed a parsing exception when HINT and COMMENT were nested multiple levels in SQL. Fixed a parsing error when COLLATE was added after DEFAULT in a table creation statement. Fixed a parsing issue with invalid date and time formats. Fixed an issue where the CONVERT function produced garbled characters when converting HEX to a character string. Fixed an exception when passing a NULL parameter to functions such as SUBSTRING, SUBSTRINGINDEX, and JSONEXTRACT. Fixed an inconsistency between CONNECTION_ID() and SHOW PROCESSLIST. Fixed an exception that occurred when a subquery table name was the same as an outer table name. Fixed a type issue with the CASE WHEN function during subquery conversion. Fixed a conversion issue when pushing down multiple subqueries in PROJECT. Fixed a duplicate column name issue in JOINs. Fixed an issue where "column not found" was misreported as "table not found". Fixed a StackOverflow issue caused by ORDER BY a non-existent column during a query. Fixed a pushdown error when a WHERE condition contained CASE WHEN and the WHEN expression contained an AND condition. Fixed an issue caused by performing JOIN_PROJECT_TRANSPOSE when the left and right tables of a JOIN had a non-pushdownable PROJECT. Fixed a shard routing error caused by time zones when a TIMESTAMP type was used as a shard key.
|
Performance optimizations | Optimized the execution of automatic rule cleanup tasks. Optimized INFORMATION_SCHEMA query performance. Optimized the BKAJOIN COST estimation algorithm. Optimized the logic for updating performance statistics and BASELINE after DDL. Optimized the two-phase AGG logic to support GROUP BY columns. Optimized the cleanup policy for PolarDB-X 1.0 transaction logs to reduce cleanup time and lower the access pressure on backend storage. Optimized microsecond precision calculation in functions such as ADDTIME, SUBTIME, DATEADD, DATESUB, and INTERVAL. Optimized SQL Audit logs to reduce the impact of network jitter. The optimizer now supports creating LITERALs of DOUBLE type. Optimized pushed-down GROUP BY queries to avoid generating subqueries. Optimized the internal implementation of aggregate functions for lower memory usage and better performance. Optimized CBO's selectivity estimation for constant expressions. Optimized DDL-related parsing to enhance error-checking capabilities. Optimized the handling of exceptional times in some time-related expression calculations to be compatible with MySQL behavior.
|