maria:bb-10.5-MDEV-28621-elimination-disabled

Last commit made on 2024-05-07
Get this branch:
git clone -b bb-10.5-MDEV-28621-elimination-disabled https://git.launchpad.net/maria

Branch merges

Branch information

Name:
bb-10.5-MDEV-28621-elimination-disabled
Repository:
lp:maria

Recent commits

7c65288... by Sergey Petrunia

MDEV-28621: group by optimization incorrectly removing subquery where subject buried in a function

Workaround patch: Do not remove GROUP BY clause when it has
subquer(ies) in it.

remove_redundant_subquery_clauses() removes redundant GROUP BY clause
from queries in form:
  expr IN (SELECT no_aggregates GROUP BY ...)
  expr {CMP} {ALL|ANY|SOME} (SELECT no_aggregates GROUP BY ...)
This hits problems when the GROUP BY clause itself has subquer(y/ies).

This patch is just a workaround: it disables removal of GROUP BY clause
if the clause has one or more subqueries in it.

Tests:
- subselect_elimination.test has all known crashing cases.
- subselect4.result, insert_select.result are updated.
Note that in some cases results of SELECT are changed too (not just
EXPLAINs). These are caused by non-deterministic SQL: when running a
query like:

  x > ANY( SELECT col1 FROM t1 GROUP BY constant_expression)

without removing the GROUP BY, the executor is free to pick the value
of t1.col1 from any row in the GROUP BY group (denote it $COL1_VAL).
Then, it computes x > ANY(SELECT $COL1_VAL).

When running the same query and removing the GROUP BY:

   x > ANY( SELECT col1 FROM t1)

the executor will actually check all rows of t1.

10a7599... by Yuchen Pei <email address hidden>

MDEV-34036 Reset spider_hton_ptr in spider_db_done()

Otherwise spider_direct_sql may still think the spider plugin is
available even after spider_db_done() was called.

42c99ef... by Sergei Golubchik

MDEV-19949 `mariadb-backup --password` test

421eeb1... by Sergei Golubchik

Revert "MDEV-19949 mariabackup option of '--password' or '-p' without specifying password in commandline"

This reverts commit 91fb8b7fd3224767fe7eb81e82f5ec0926751420.

Incompatible change, see tests in the next commit

33e4fbf... by =?utf-8?q?Jan_Lindstr=C3=B6m?= <email address hidden>

MDEV-33898 : Galera test failure on galera.MW-369

Additional changes for the galera_vote_rejoin_ddl test (for 10.5+).

Signed-off-by: Julius Goryavsky <email address hidden>

bca366e... by Yuchen Pei <email address hidden>

MDEV-34098 source start_slave.inc in spider suites

The spider suite should --source include/start_slave.inc to make sure
the slave is up before proceeding.

89084c2... by Dave Gosselin <email address hidden>

MDEV-33078 SysInfo.pm reports incorrect CPU count on macOS

When running on macOS, MTR will ask the operating system for the core count when --parallel=auto

7ed9d2a... by Sergei Golubchik

MDEV-9179 When binlog_annotate_row_events on , event of binlog file is truncated

cnt counter was incremented one extra time per line

7eeba92... by Sergei Golubchik

Merge branch '10.4' into 10.5

13663cb... by Sergei Golubchik

MDEV-33727 mariadb-dump trusts the server and does not validate the data

safety first - tell mariadb client not to execute dangerous
cli commands, they cannot be present in the dump anyway.

wrapping the command in /*!999999 ..... */ guarantees that
if a non-mariadb-cli client loads the dump and sends it to the
server - the server will ignore the command it doesn't understand