I have this function
RETURN ACOS(SIN(RADIANS(lat1))*SIN(RADIANS(lat2))+COS(RADIANS(lat1))*COS(RADIANS(lat2))*COS(RADIANS(lon2-lon1)))*6371;
And i get the error
This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA”.
How do i fix this such that the error does not occur?