mariadb/storage
Jacob Mathew ceb5597184 MDEV-16889: Spider Crash mysqld got exception 0xc0000005
The SELECT with the INNER JOIN is executed with one of the two tables being
optimized as a constant table, which is pre-read.  Spider nevertheless attempts
to push down the join to the data node.  The crash occurs because the constant
table is excluded from the optimized query that Spider attempts to push down.

In order for Spider to be able to push down a join, the following conditions
need to be met:
- All of the tables involved in the join need to be included in the optimized
  query that Spider pushes down.  When any of the tables involved in the join
  is a constant table, it is excluded from the optimized query that Spider
  attempts to push down.
- All fields involved in the query need to be members of tables included in the
  optimized query.

I fixed the problem by preventing Spider from pushing down queries that include
a field that is not a member of a table included in the optimized query.  This
solution fixes the reported problem and also fixes other potential problems.

Author:
  Jacob Mathew.

Reviewer:
  Kentoku Shiba.

Merged:
  Commit 4885baf on branch bb-10.3-MDEV-16889
2018-08-29 19:34:00 -07:00
..
archive Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
blackhole Added "const" to new data for handler::update_row() 2017-04-18 12:23:53 +03:00
cassandra remove obsolete checks for -fno-implicit-templates 2018-08-12 11:37:43 +02:00
connect Merge branch '10.2' into 10.3 2018-08-12 12:02:23 +02:00
csv Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
example Changed static const in Alter_info and Alter_online_info to defines 2018-03-29 13:59:40 +03:00
federated Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
federatedx Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
heap Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
innobase Merge 10.2 into 10.3 2018-08-28 12:22:56 +03:00
maria Merge branch '10.2' into 10.3 2018-06-30 16:39:20 +02:00
mroonga remove obsolete checks for -fno-implicit-templates 2018-08-12 11:37:43 +02:00
myisam Merge 10.2 into 10.3 2018-08-03 15:57:23 +03:00
myisammrg Follow-up for be6ae0bb6b - fix test results 2018-05-19 14:23:06 +03:00
oqgraph remove obsolete checks for -fno-implicit-templates 2018-08-12 11:37:43 +02:00
perfschema Merge branch '10.2' into 10.3 2018-05-11 13:15:10 +02:00
rocksdb MDEV-16703: Update AUTO_INCREMENT in the UPDATE statement 2018-08-26 15:10:32 +03:00
sequence Changing field::field_name and Item::name to LEX_CSTRING 2017-04-23 22:35:46 +03:00
sphinx MDEV-16544 - crash in ha_sphinx::create() 2018-08-05 00:33:12 +01:00
spider MDEV-16889: Spider Crash mysqld got exception 0xc0000005 2018-08-29 17:36:16 -07:00
test_sql_discovery Merge bb-10.2-ext into 10.3 2017-09-21 08:12:19 +03:00
tokudb remove obsolete checks for -fno-implicit-templates 2018-08-12 11:37:43 +02:00