Changelog and roadmap

MariaDB and MySQL front-end, D70 to D88

Entries D70 to D88 of the unreleased changelog (views to triggers) and the removal of the in-server election.

Newest entries of the unreleased version (Stage 0). The first entry is a removal, the others add features of the MySQL and MariaDB front-ends (raftdb-mysql).

Removed#

  • The election inside the server (D51 C4): cluster.rs, the cluster-* settings, the cluster profile, Config::cluster, the cluster object of GET /v1/server, the raftdb-raft dependency of raftdb-server, its tests, and the scripts that started such clusters. Failover is now done by the watcher quorum (control = true on the nodes, cluster_peers on the watchers; tested by the watcher's control-plane tests and a real-process failover test).

Added#

  • MariaDB / MySQL (D88): triggers (BEFORE / AFTER INSERT / UPDATE / DELETE, NEW and OLD, SHOW TRIGGERS, information_schema.TRIGGERS).
  • MariaDB / MySQL (D87): stored procedures and functions (CREATE, DROP, CALL, SHOW CREATE, SHOW ... STATUS, information_schema.ROUTINES), with variables, handlers, cursors, loops, SIGNAL; several result sets in one answer.
  • MariaDB / MySQL (D86): any table or database name MySQL allows; MySQL's words for bad JSON; the real SHOW CHARACTER SET / SHOW COLLATION lists; fix for a stale connection after a failed unique index.
  • MariaDB / MySQL (D85): row comparisons, ANY/SOME/ALL, SUBSTRING(s FROM .. FOR ..), INTERVAL(), SHOW DATABASES LIKE, X'..', names that start with digits, FETCH FIRST and GROUP_CONCAT ... LIMIT (MariaDB), VALUES (..) (MariaDB).
  • MariaDB / MySQL (D84): GROUP BY ... WITH ROLLUP; MySQL's ->, ->> and MEMBER OF.
  • MariaDB / MySQL (D83): ANALYZE / OPTIMIZE / CHECK / REPAIR TABLE; REGEXP_REPLACE, REGEXP_SUBSTR, REGEXP_INSTR; regular-expression groups, back-references and look-around.
  • MariaDB / MySQL (D82): UUID, INET4, INET6, SERIAL and the other names of the types; about 60 more functions; the JSON functions; STDDEV, VARIANCE, BIT_*, JSON_ARRAYAGG; checked against MySQL and MariaDB.
  • MariaDB / MySQL (D81): every system variable of MySQL and MariaDB with its default, SET GLOBAL; SQL-level PREPARE / EXECUTE / DEALLOCATE and EXECUTE IMMEDIATE; CREATE OR REPLACE, IF [NOT] EXISTS in ALTER TABLE and CREATE/DROP INDEX; RETURNING; sequences; expression defaults (DEFAULT (expr)); checked against MySQL and MariaDB.
  • MariaDB (D80): MariaDB Connector/J works (lists in SET, _binary/_charset literals, binary column metadata); MariaDB's error wording and SHOW shapes; exact whole-number and decimal arithmetic up to 128 bits and full BIGINT UNSIGNED; SHOW INDEX cardinality; the MariaDB documentation coverage harness and its first result.
  • MySQL front-end (D79): the dialect setting (mysql, mariadb): the program answers as MariaDB 11 (version, handshake without CLIENT_MYSQL and with MariaDB's capability bytes, default plugin, sql_mode, collation, int(11) display widths, its own database namespace __rdb_mariadb); the MariaDB dialect is compared with a real MariaDB.
  • MySQL front-end (D78): the type of a computed column of CREATE TABLE ... AS SELECT and of the hidden column of a functional index is worked out from the expression as MySQL does (exprtype.rs); checked against MySQL and MariaDB.
  • MySQL front-end (D77): a comparison with the expression of a functional index uses the index; MySQL's rules and error messages for what generated columns, functional indexes and checks may contain (no NOW(), RAND(), subqueries, variables, JSON or TEXT results), and for dropping or renaming a column they depend on; checked against MySQL and MariaDB.
  • MySQL front-end (D76): functional indexes (KEY ((expression)) in CREATE TABLE, CREATE INDEX, ALTER TABLE ADD INDEX, DROP INDEX) as hidden generated columns; unique indexes are listed first; checked against MySQL and MariaDB.
  • MySQL front-end (D75): invisible columns (INVISIBLE, ALTER COLUMN ... SET [IN]VISIBLE) and invisible indexes (KEY ... INVISIBLE, ALTER INDEX i [IN]VISIBLE); checked against MySQL and MariaDB.
  • MySQL front-end (D74): generated columns (GENERATED ALWAYS AS (expr) VIRTUAL | STORED, kept in the row, refreshed on every write, ALTER TABLE ADD COLUMN, SHOW CREATE TABLE, DESCRIBE); checked against MySQL and MariaDB.
  • MySQL front-end (D73): CHECK constraints (column and table level, ALTER TABLE ADD CHECK / DROP CHECK, NOT ENFORCED, SHOW CREATE TABLE, LIKE); checked against MySQL and MariaDB.
  • MySQL front-end (D72): temporary tables (CREATE TEMPORARY TABLE also with LIKE / AS SELECT, DROP TEMPORARY TABLE, session-private, hide a base table, dropped at the end of the session); checked against MySQL and MariaDB.
  • MySQL front-end (D71): CREATE TABLE ... LIKE, CREATE TABLE ... [IGNORE | REPLACE] [AS] SELECT (also with WITH, UNION, written columns and keys); checked against MySQL and MariaDB.
  • MySQL front-end (D70): views (CREATE [OR REPLACE] VIEW, ALTER VIEW, DROP VIEW, SHOW CREATE VIEW, SHOW FULL TABLES, DESCRIBE of views, updatable single-table views); checked against MySQL and MariaDB.