[MDEV-28336] Attempt to create temporary OQGraph table fails with unexpected ER_NO_SUCH_TABLE Created: 2022-04-17  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: Data Definition - Temporary, Storage Engine - OQGRAPH
Affects Version/s: 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Creation of a temporary OQGraph table fails with an error complaining about a missing backing table.
It wouldn't be surprised if temporary OQGraph tables were forbidden, but the specific error is wrong.

--source include/have_innodb.inc
 
INSTALL SONAME 'ha_oqgraph';
 
CREATE TABLE oq_backing (
  origid INT UNSIGNED NOT NULL, 
  destid INT UNSIGNED NOT NULL,  
  PRIMARY KEY (origid, destid), 
  KEY (destid)
) ENGINE=InnoDB;
 
CREATE TEMPORARY TABLE oq_graph (
  latch VARCHAR(32) NULL,
  origid BIGINT UNSIGNED NULL,
  destid BIGINT UNSIGNED NULL,
  weight DOUBLE NULL,
  seq BIGINT UNSIGNED NULL,
  linkid BIGINT UNSIGNED NULL,
  KEY (latch, origid, destid) USING HASH,
  KEY (latch, destid, origid) USING HASH
) 
ENGINE=OQGRAPH 
data_table='oq_backing' origid='origid' destid='destid';

10.3 3814b04d6

mysqltest: At line 12: query 'CREATE TEMPORARY TABLE oq_graph (
latch VARCHAR(32) NULL,
origid BIGINT UNSIGNED NULL,
destid BIGINT UNSIGNED NULL,
weight DOUBLE NULL,
seq BIGINT UNSIGNED NULL,
linkid BIGINT UNSIGNED NULL,
KEY (latch, origid, destid) USING HASH,
KEY (latch, destid, origid) USING HASH
) 
ENGINE=OQGRAPH 
data_table='oq_backing' origid='origid' destid='destid'' failed: 1146: Table 'test.oq_backing' doesn't exist


Generated at Thu Feb 08 09:59:55 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.