[MDEV-25913] Allow using spatial index with partitioned tables Created: 2021-06-14  Updated: 2021-06-14

Status: Open
Project: MariaDB Server
Component/s: Storage Engine - InnoDB
Fix Version/s: None

Type: Task Priority: Minor
Reporter: Хүрэлхуяг Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None


 Description   

I'm trying to create a partitioned table for GPS device data. Like this example.

CREATE TABLE data (
   deviceId BIGINT UNSIGNED NOT NULL,
   createdAt DATETIME NOT NULL,
   location POINT NOT NULL,
   PRIMARY KEY (deviceId, createdAt),
   SPATIAL KEY (location)
)Engine=InnoDB PARTITION BY HASH ( deviceId ) PARTITIONS 1024;

But MariaDB server returning an error message

[42000][1178] (conn=30) The storage engine for the table doesn't support GEOMETRY

I googled and found this (https://bugs.mysql.com/bug.php?id=60298). This issue is filed more than 10 years ago. Still has no resolution. I think MariaDB has the same problem because it is forked from MySQL. Maybe this can be fixed on the MariaDB side?


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