MySQL & MariaDB error 4101 ER_IF_NOT_EXISTS_UNSUPPORTED_UDF_NATIVE_FCT_NAME_COLLISION
Same number, two different errors. 4101 means one thing in MySQL and another in MariaDB. Check which server you are connected to.
MySQLThis function '…' has the same name as a native function. The 'IF NOT EXISTS' clause is not supported while creating a loadable function with the same name as a native function.
MariaDBNumeric datatype is required for … function