MySQL & MariaDB error 4032 ER_INVALID_CAST_TO_GEOMETRY
Same number, two different errors. 4032 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLInvalid cast from … to ….
MariaDBDefault/ignore value is not supported for such parameter usage