MySQL 8 follows the following rules for spatial index characteristics:
- It is only available for InnoDB and MyISAM storage engines; if you try to use it for other storage engines, then MySQL 8 gives an error.
- A NULL value is not allowed for indexed columns.
- A prefix attribute is not allowed for this column. Full width will be considered for the index.