2022 compute node release notes

Updated at:

This topic describes the release notes for PolarDB-X instance compute nodes in 2022.

Release date: 2022-12-27

Major version: V5.4.16

Minor version: 16717637

Category

Description

New features & optimizations

Added support for the create database like/as statement, which supports one-click migration of DRDS mode databases to AUTO mode databases. For more information, see Convert a DRDS mode database to an AUTO mode database.

Added support for multi-node parallel migration in OSS backfill.

Added support for user-defined functions.

Added Rebalance partition balancing strategy, which is enabled by default during data redistribution in scale-out and scale-in operations.

Added support for the following partition functions: substr, dayofmonth, dayofweek, dayofyear, to_months, to_weeks.

The CHECK TABLE statement now supports local index verification.

Added the useCursorFetch=true parameter in JDBC connection strings. This parameter supports caching query results on the server, allowing the client to fetch a few records at a time instead of returning all query results to the client at once.

Optimized memory consumption of the optimizer in scenarios with many OR queries.

Improved stability during data migration to reduce impact on business operations.

Improved data migration efficiency.

Added support for substr and substring as partition functions for VARCHAR and CHAR types in partitioned tables.

Bug fixes

Fixed an issue where TableScanExec occasionally stopped early in certain MergeSort scenarios.

Fixed an issue where a primary table with a GSI could not be renamed.

Reduced redundant local indexes on global secondary indexes in AUTO mode databases.

Fixed an issue where window functions reported errors when executed in MPP mode.

Fixed an issue where the year function calculated incorrectly when the input type was tinyint, and an issue with incorrect comparison types in join conditions.

Fixed an issue where AES encryption and decryption functions returned unexpected results.

Release date: 2022-12-23

Major version: V5.4.15

Minor version: 16715927

Category

Description

New features & optimizations

Added support for Binary and VarBinary types as partition keys in AUTO mode databases.

Improved the LAST_INSERT_ID() function semantics to be consistent with MySQL.

Bug fixes

Fixed an issue where REPLACE and UPSERT commands reported errors when a table contained JSON type columns.

Fixed an issue where the found_rows function calculated incorrect results in stored procedures.

Fixed an issue where topN was missing in statistics when column names were in uppercase.

Fixed an issue where DDL tasks might fail and could not continue or roll back when executing Alter Table commands to rebuild composite primary keys and delete some primary key columns.

Fixed an issue where the json_extract function incorrectly returned the string "NULL" when extracting non-existent properties.

Release date: 2022-12-13

Major version: V5.4.15

Minor version: 16704996

Category

Description

New features & optimizations

Optimized error messages and logs generated when parsing SQL errors.

Added partition hint functionality to meet customer needs for batch processing scenarios targeting a single shard.

Added support for privileged users to kill other connections.

Bug fixes

When selecting a GSI, if the shard key is not the primary key, the equivalent condition for the shard key would change from = to <=>. Fixed an issue where <=> prevented the construction of in-queries containing shard keys in BKA joins, causing partition pruning to fail and resulting in full shard scanning.

Fixed an issue where UPSERT did not update CURRENT_TIMESTAMP in specific situations.

Fixed an issue where errors occurred in some Semi-join scenarios with GSI.

Fixed incorrect table-level permissions for certain DAL statements (show tables, show topology from, analyze table).

Fixed a syntax error in the set password statement when the host is empty.

Fixed an NPE issue when RawString received a null value.

Fixed an issue where alter table remove partitioning failed when the primary key and shard key were the same.

Fixed an issue where unexpected primary key conflicts could slow down data migration.

Fixed an issue where large-scale DN nodes could stutter and fail during simultaneous HA.

Fixed a decimal value processing issue when executing the aggregate function sum.

Fixed an issue where the ENABLE_BACKGROUND_STATISTIC_COLLECTION configuration did not take effect for statistics sampling.

Fixed an issue where executing show full columns exposed implicit primary keys, causing sharding jdbc access failures.

Release date: 2022-11-27

Major version: V5.4.15

Minor version: 16694249

Category

Description

New features & optimizations

Optimized proprietary protocol error messages after timeout in transactions.

Bug fixes

Fixed an issue where the proprietary protocol network layer could unexpectedly disconnect in poor network environments.

Fixed an issue where MPP query mode was prone to deserialization failures on read-only instances.

Fixed an issue where setting SQL_SELECT_LIMIT to default caused an error.

Release date: 2022-11-21

Major version: V5.4.15

Minor version: 16687348

Category

Description

New features & optimizations

Optimized query logic with AGG functions under TSO transactions.

Improved error message prompts for alter table parsing errors.

Optimized global index selection logic to reduce selection bias for global indexes.

Disabled Generated Columns when creating and altering tables.

Optimized maptolist performance in JDBC mode.

Improved rowcount collection speed to enhance the efficiency of analyze table and the scheduled task STATISTIC_ROWCOUNT_COLLECTION.

Bug fixes

Fixed an issue where data rows with primary key values of "0000-00-00 00:00:00" could not be updated via JDBC on tables with GSI.

Fixed an issue where the statistics scheduled task did not sync the sample table.

Fixed a bug in expiration logic that prevented sample tasks from being initiated.

Release date: 2022-11-02

Major version: V5.4.15

Minor version: 16668369

Category

Description

New features & optimizations

Added support for obtaining LSN log offsets in Grouping mode in read/write splitting scenarios.

Bug fixes

Fixed an issue where uuid and uuid_short functions were only calculated once.

Fixed an issue where the DDL engine misjudged physical shard completion status in some timeout or interrupt scenarios, resulting in unexpected errors or orphaned DDL tasks.

Fixed an issue where pruning consumed excessive CPU.

Fixed an issue where executing the analyze table statement could cause compute node memory overload due to inaccurate rowcount sample tables.

Fixed a cleanup issue with spm params under high concurrency.

Fixed an AGG function correctness issue caused by SQL_SELECT_LIMIT being passed to storage nodes.

Fixed an issue where active analyze did not process index ndv when a table was accessed without conditions.

Fixed an issue where physical tables could not be found after rename (only for logical tables without physical table random suffixes in AUTO mode databases).

Release date: 2022-10-19

Major version: V5.4.15

Minor version: 16660526

Category

Description

New features & optimizations

Added support for viewing archived table space usage.

Added support for move partition operations on original tables when archived tables are bound.

Default password restriction policy for account creation is now compatible with RDS MySQL.

Optimized the logic for creating time column indexes on default primary key sharded tables, no longer creating global secondary indexes by default.

Optimized the proprietary protocol health check process to reduce instances of connections being killed due to inability to create sessions.

Bug fixes

Fixed an issue where changing a column's AUTO_INCREMENT attribute in a single table using ALTER TABLE in DRDS mode databases automatically associated a Sequence.

Fixed a type matching error in UPSERT when the Update list order differed from the table definition.

Fixed an issue where Kill Connection did not report any errors when it failed.

Fixed a permission verification failure error when querying information_schema multiple times in prepare mode.

Fixed a potential DN deadlock issue when there were too many distributed transaction recoveries and hanging transactions, and DN sessions were full.

Release date: 2022-09-30

Major version: V5.4.15

Minor version: 16642369

Category

Description

New features & optimizations

Added information_schema permission system tables compatible with MySQL.

Bug fixes

Fixed issues with errors when querying certain views in information_schema.

Fixed an error in the load data statement when character sets were specified without quotes.

Fixed an issue where mock mode did not support insert on duplicate key update.

Fixed an issue where unique global indexes might become inconsistent with primary table data during creation or data migration.

Fixed an issue where partition key point queries could return incorrect results due to Auto mode database write parallelism.

Release date: 2022-09-20

Major version: V5.4.15

Minor version: 16635539

Category

Description

New features & optimizations

Added support for automatic partition splitting.

Added Auto-Split O&M functionality.

Added support for stored procedures. For more information, see Stored procedures.

Added support for table-level partitioned table changes. For more information, see Change table-level partitions (AUTO mode).

Added support for kill connection syntax.

Added kernel permissions to support configuration and detection of password complexity and validity periods.

Added support for BKA-Join In value pruning for partitioned tables in AUTO mode databases.

Added support for user login and logout auditing (disabled by default).

Added support for online column type modification. For more information, see Lock-free DDL column type changes.

Added support for initiating sampling when statistics FEEDBACK occurs.

Made partition heatmap compatible with automatic partition splitting.

Adjusted the default size of Plan Cache from 2000 to 4000, and changed statistics feedback from enabled by default to disabled by default.

Improved data migration speed during operations such as creating global secondary indexes, scaling, and partition changes.

Optimized type comparison logic for new partitioned table DML.

Improved UPSERT performance under certain conditions.

Optimized the set global variable setting logic to reduce overhead.

Bug fixes

Fixed an issue where to_base64 incorrectly parsed binary variables.

Fixed unexpected pushdown behavior of window functions in certain scenarios.

Fixed an issue where EXPLAIN EXECUTE results differed from actual indexes when passing execution plans through proprietary protocol.

Fixed unexpected pushdown issues with non-pushdown functions in certain cases.

Fixed an error with user creation statements that did not include a host.

Fixed escape character issues with non-pushdown JSON_QUOTE function.

Fixed an NPE issue during MDL lock acquisition.

Fixed an array-index out of bounds issue in the HashGroupJoin operator.

Fixed an issue where AES encryption functions returned unexpected results.

Fixed an issue where partition selection returned incorrect results in covering index queries.

Fixed an issue where archived table in queries could not prune files.

Fixed calculation errors in window functions under certain conditions.

Fixed an issue where shard key changes in DRDS mode databases were case-sensitive to table names.

Fixed a delay init issue during full table scans in AUTO mode databases.

Release date: 2022-09-02

Major version: V5.4.14

Minor version: 16619918

Category

Description

Bug fixes

Fixed an issue where table names in subqueries within UPDATE commands were not correctly replaced in pushed-down single tables.

Fixed an NPE issue with multiple tables in UPDATE commands.

Fixed a parsing issue with the JSON operator -> in expressions.

Fixed an error issue caused by Context not being passed during APPLY execution in some subqueries.

Fixed a missing shard issue with yyyyweek cross-year week closed interval range queries.

Release date: 2022-08-15

Major version: V5.4.14

Minor version: 16601976

Category

Description

Bug fixes

Fixed an issue where read/write splitting was not effective in read-only transactions.

Fixed garbled text issues in DTS synchronization.

Fixed an issue where the auto savepoint feature might release user-set savepoints.

Fixed SQL errors in rebalance tasks updating system tables.

Fixed an issue where parameter redundancy processing in JDBC mode caused excessive CPU consumption in proprietary protocol mode.

Fixed an issue where SPM was disabled by default.

Fixed incorrect handling of BINARY type when executing UPDATE statements.

Release date: 2022-08-01

Major version: V5.4.14

Minor version: 16590002

Category

Description

New features & optimizations

Added support for cold data archiving. For more information, see Cold data archiving syntax.

Added support for the ALTER TABLE PARTITIONS statement, which allows one-click modification of the number of partitions for both primary tables and global secondary index tables (only available for default primary key sharded tables in AUTO mode databases). For more information, see Convert a DRDS mode database to an AUTO mode database.

Added support for custom variables as expressions.

Added support for dynamic partition pruning of sharding conditions containing Scalar subqueries in partitioned tables.

Added support for pausing scheduled tasks for TTL tables.

Added support for default partitions in List partitioned tables.

Implemented Optimize table using the new DDL engine.

Added support for using custom variables in text Prepare mode.

Improved error messages when deleting default-generated local indexes on default primary key sharded tables.

Optimized read/write parallelism and performance for physical partitions in AUTO databases.

Bug fixes

Fixed incorrect query results when using month partition function with List partitions.

Fixed a concurrent safety issue during subquery elimination.

Fixed an issue where DDL execution failed when CDC started.

Modified the logic of alter table remove partitioning in AUTO mode databases to convert partitioned tables to default primary key sharded tables instead of converting tables to single tables.

Fixed compatibility issues with Navicat primary key metadata in PolarDB-X.

Fixed an issue where the show status view returned empty results.

Fixed an NPE issue with ExplainOptimizer for Insert statements in AUTO mode databases.

Fixed an issue where incorrect physical databases were selected when pushing down joins between broadcast tables and single tables in AUTO mode databases, causing execution errors.

Release date: 2022-07-14

Major version: V5.4.14

Minor version: 16576195

Category

Description

Bug fixes

Fixed errors and potential correctness issues in transactions caused by IN expression pruning.

Fixed failures when executing DROP CLUSTERED GSI. When adding GSI to non-default primary key sharded tables, LOCAL INDEX is no longer automatically added to existing CLUSTERED GSI.

Fixed incorrect results in range queries when using the month partition function.

Fixed an issue where tables with LOCAL FULLTEXT KEY could not be truncated.

Release date: 2022-06-28

Major version: V5.4.14

Minor version: 16563827

Category

Description

New features & optimizations

Made proprietary protocol health check timeout adjustable.

Bug fixes

Fixed failures with alter table modify after.

Fixed compatibility issues when both cachePrepStmts and useServerPrepStmts were enabled with the 8.0 driver.

Fixed an issue with setting transaction policy to BED. Best effort transaction policy is no longer supported in PolarDB-X 2.0.

Fixed an issue where using constant expressions as partition keys lacked syntax validation and caused table creation failures.

Fixed an issue where Current timestamp values did not change within the same session.

Fixed an issue where business SQL in the Session Manager interface conflicted with proprietary protocol internal logic, causing slow queries.

Release date: 2022-06-21

Major version: V5.4.14

Minor version: 16556932

Category

Description

Bug fixes

Fixed an issue where metadata processing failed when using ALTER TABLE to change column names to special characters.

Fixed a return type issue with sum(bigint unsigned).

Release date: 2022-06-09

Major version: V5.4.14

Minor version: 16547447

Category

Description

New features & optimizations

Optimized memory usage of the Scan operator during streaming merge sort.

Bug fixes

Fixed Broadcast Shuffle selection issues with Outer Join in MPP execution mode.

Fixed an issue where single tables could not be pushed down in AUTO mode databases.

Fixed an optimizer error when converting IN statements to Subqueries in Prepare mode.

Fixed incorrect query results for union distinct queries in MPP execution mode.

Fixed an NPE reporting issue when Sequence initialization failed in read-only instances.

Fixed an issue where SQL throttling could not match table names with backticks.

Fixed an NPE issue during the whatif phase of shardingadvisor.

Release date: 2022-06-02

Major version: V5.4.14

Minor version: 16539836

Category

Description

New features & optimizations

Added support for globally unique, monotonically increasing, high-performance New Sequence. For more information, see New Sequence (NEW).

Added support for specifying locality attributes when creating databases, table groups, tables, and partitions in AUTO mode, and for dynamically modifying the Locality of table groups and partition groups. For more information, see Specify storage location using LOCALITY (AUTO mode).

Optimized the logic for partition changes on default auto-partitioned tables. When executing ALTER PARTITION statements to convert default auto-partitioned tables to partitioned tables, GSI will be converted to Local Index.

Improved error messages when partitions cannot be found during data backfill when creating GSI or changing partitions.

Added shardingadvise syntax to recommend table sharding methods based on current database workload.

Enabled set global variable switch by default.

Added partition heatmap functionality. For more information, see Partition heatmap.

Added tablegroup mdl to resolve mdl deadlock issues that easily occur with tables sync.

Added automatic rollback for failed DML statements in transactions without affecting subsequent statement execution.

Optimized the memory model for IN dynamic parameter scenarios.

Added support for Insert Overwrite syntax.

Added support for hex string in new partitioned table creation statements.

Added support for merging multiple table groups with the same partitioning method into one merged tablegroup, and for batch adding tables with the same partitioning to a target table group. For more information, see Change table group-level partitions (AUTO mode) and Table group merging (AUTO mode).

Made deadlock detection compatible with MySQL 8.0.

Added support for server-side cursor.

Added support for setting table groups directly through GSI logical names, such as alter table t1.g1 set tablegroup=#tg.

Added support for simultaneously querying primary tables and secondary index tables before indexes that obtain data from tables.

Improved execution performance of insert, update, delete, and select statements.

Reduced the number of execution plans generated for requests with IN expressions, decreasing pressure on memory and PlanCache.

Optimized the permission verification process.

Removed the restriction that user tables cannot have the same names as system tables.

Optimized DDL execution logic to prevent adding a task to the execution queue when it is already being executed.

Added DDL task history data archiving.

Added support for STATEMENTS_SUMMARY and STATEMENTS_SUMMARY_HISTORY metadatabase tables. For more information, see Metadatabase and data dictionary.

Bug fixes

Fixed incorrect Having alias syntax in physical SQL.

Fixed an issue where read-only traffic could not be switched back to the primary database when the log replication thread was interrupted in read/write splitting scenarios.

Fixed an issue where errors were not returned to clients when SQL throttling rescheduled execution (wait_queue_size greater than 0, statements coming out of the waiting queue for execution), causing client blocking.

Fixed an issue where statistics collection hll time was not controlled at the shard level.

Upgraded jetty to version 205 to avoid off-heap memory leaks caused by low jetty versions during MPP RPC processes.

Fixed potential Lock wait timeout issues when recording physical DDL status during DDL task execution.

Fixed string encoding errors in proprietary protocol on non-utf8 encoded connections.

Fixed cases where show ddl might be empty or incomplete after trace ddl.

Fixed incompatibility of the SHOW RULE command with new partitioned tables.

Fixed missing index metadata when adding columns and creating indexes simultaneously.

Fixed an issue where statistics were cleared after Rename Table or Alter Table column changes.

Fixed a plan pollution issue caused by Comparative object changes.

Fixed an issue where show columns and desc result column headers were all uppercase.

Fixed an issue where global unique indexes lost primary key information in AUTO databases.

Fixed inconsistent table names in CDC marking information.

Fixed an issue where GSI-related indexes were incorrectly pushed down when using ignore index in AUTO mode databases.

Release date: 2022-05-16

Major version: V5.4.13

Minor version: 16526725

Category

Description

New features & optimizations

Improved error messages for fatal errors in proprietary protocol backend connections.

Optimized the KILL ALL statement to kill all backend connections regardless of whether requests are being executed.

Bug fixes

Fixed an issue where IndexAdvisor made tables unusable when modifying table metadata.

Fixed a potential data inconsistency issue during GSI UPDATE operations.

Fixed an issue where implicit primary keys and shard keys were incorrectly deduplicated when they were duplicated in UGSI.

Release date: 2022-04-21

Major version: V5.4.13

Minor version: 16504348

Category

Description

Bug fixes

Improved error messages for sharding rule changes and partition rule changes in DDL syntax.

Fixed column sequence disorder in pushed-down INSERT after INSTANT ADD COLUMN.

Fixed incorrect CDC marking topology information in Truncate Table With RecycleBin scenarios.

Release date: 2022-04-15

Major version: V5.4.13

Minor version: 16499071

Category

Description

New features & optimizations

Added automatic CN restart when out-of-memory occurs.

Bug fixes

Fixed an issue where multiple iterations in BKA join queries could occasionally produce inconsistent results with large data volumes and low cardinality.

Fixed an issue where index point queries truncated fields exceeding length limits when passing execution plans through proprietary protocol, resulting in incorrect return results.

Fixed an issue where inequality conditions could lead to incorrect query results.

Release date: 2022-04-08

Major version: V5.4.13

Minor version: 16493698

Category

Description

Bug fixes

Fixed an issue where information_schema.processlist collected read-only instance sessions.

Release date: 2022-04-02

Major version: V5.4.13

Minor version: 16487873

Category

Description

New features

Improved and optimized support for binary encoding.

Added Hint to allow manual intervention when physical DDL partially fails.

Optimized PolarDB-X distributed deadlock detection logic.

Changed CLEAR SLOW from schema level to instance level.

Added DN and physical database information display in partitioned table SHOW topology.

Optimized distributed transaction global timestamp acquisition with shorter timeout strategies and more retries.

Bug fixes

Fixed an issue where numeric partition names in Show Create Table for partitioned tables were not enclosed in backticks, causing table creation syntax errors.

Fixed errors in console authorization operations.

Fixed potential hanging issues with DN node HA detection during scale-in.

Fixed a low-probability issue where concurrent modification of session variables in proprietary protocol caused query errors.

Fixed potential performance issues caused by duplicate pruning plan generation in partitioned table LookupJoin.

Fixed an issue where Partition Selection syntax did not support DML statements.

Release date: 2022-03-14

Major version: V5.4.13

Minor version: 16462728

Category

Description

New features

Added support for creating tables without defined primary keys but with global secondary indexes.

Bug fixes

Fixed a low-probability deadlock issue that could occur when backend connections were interrupted in proprietary protocol.

Fixed a low-probability issue where notifications to frontend requests might be lost when no data was returned in proprietary protocol.

Fixed an hll non-index column issue.

Fixed an issue where DDL tasks exceeding 16MB failed to submit.

Fixed backtick handling issues in character set and collate definitions.

Fixed a potential issue where composite unique constraint order might be incorrect in global unique indexes in new sharded databases.

Added support for error reporting in empty partition pruning scenarios in MPP execution mode.

Fixed a MetaDB connection leak issue when querying Schemata.

Release date: 2022-01-07

Major version: V5.4.13

Minor version: 16415631

Category

Description

New features

Added support for specifying the table creation mode (new partition table mode or old database sharding and table sharding mode) when creating databases. The default is database sharding and table sharding mode. For syntax details, see CREATE DATABASE.

Added support for creating hash partition tables using MySQL partition table syntax, with partition strategies including Hash/Range/List. For more information, see Partitioned tables.

Added dynamic pruning capabilities for partitioned tables, including support for constant folding, interval merging, and prefix query pruning for partition column conditions.

Added support for JOIN computation pushdown in partitioned tables.

Added partition management capabilities for partitioned tables, including adding, deleting, splitting, merging, and migrating partitions. For more information, see Change table group-level partitions (AUTO mode).

Added table group and management capabilities (including creating, deleting, and changing table groups), supporting unaffected JOIN computation pushdown during partition changes. For more information, see Change table group-level partitions (AUTO mode).

Added support for global index tables using MySQL partition table syntax with Hash/Range/List partition strategies. For more information, see CREATE INDEX (AUTO mode syntax).

Added support for using partition table syntax with automatic sharding. For more information, see Primary key sharding in DRDS mode.

Added support for partitioned tables in sharding changes. For more information, see Primary key sharding in AUTO mode.

Added primary key inclusion in new partitioned table GSI automatic sharding to address GSI hotspot issues.

Added support for instance scale-out and scale-in.

Added TTL and management capabilities for partitioned tables (including adjusting TTL initial time and time intervals). For more information, see What is the TTL feature.

Added broadcast table recommendations in SQL Advisor.

Added support for Instant Add Column functionality.

Added support for Explain Statistics to retrieve all information needed for optimizer optimization.

Added support for viewing the most recent deadlock information using SHOW [GLOBAL|LOCAL] DEADLOCKS.

Limited CBO search space to reduce optimization time for complex queries.

Optimizations

Improved the Check Table command to support verification of metadata consistency for primary table partitions, index table partitions, and column definitions.

Improved the performance of data verification tasks in some background DDL operations, accelerating GSI/scaling DDL changes.

Bug fixes

Fixed null pointer and sorting errors in heuristic join reorder.

Fixed RelNode rowtype errors caused by AccessPathRule.

Fixed data inconsistency issues when creating GSI with collate set to utf8mb4_0900_ai_ci.

Fixed an issue where maximum login attempts did not take effect.

Fixed inaccurate estimateSize in certain blocks.

Fixed Decimal precision loss issues in proprietary protocol.

Fixed errors when comparing byte and char types during execution plan transmission in proprietary protocol.

Fixed missing index metadata after Alter Table Add/Drop Primary Key operations.

Fixed table structure inconsistency issues caused by external interruptions or physical shard timeouts during Alter Table operations.

Fixed an issue where Drop index operations did not automatically roll back when all physical shards failed.