[ ] CDB_Kmeans --> CDB_KMeansSpatial (note: this function also needs to accept an id_col argument #199)
This can be accomplished as follow:
CREATE OR REPLACE FUNCTION CDB_RandomForestRegressor(...) RETURNS ... AS $$
BEGIN
RETURNS QUERY SELECT * FROM CDB_CreateAndPredictSegment(...);
END;
$$ LANGUAGE plpgsql;
List of function names to update (incomplete):
CDB_AreasOfInterestLocalRate
-->CDB_MoransILocalRate
(#202)CDB_AreasOfInterestLocal
-->CDB_MoransILocal
(#202)CDB_GetSegmentAndPredict
-->CDB_RandomForestRegressor
CDB_Kmeans
-->CDB_KMeansSpatial
(note: this function also needs to accept anid_col
argument #199)This can be accomplished as follow:
This SO answer is a bit more concise: https://stackoverflow.com/questions/40300728/function-alias-for-postgres-default-function?answertab=active#tab-top
Along with this, the docs should be updated to include the new function names and have a note that the old function name is deprecated.
cc @stuartlynn