correct func signatures

This commit is contained in:
Andy Eschbacher 2016-03-30 11:44:44 -04:00
parent b0150d4fec
commit 4c243bf1d3

View File

@ -8,7 +8,7 @@ CREATE OR REPLACE FUNCTION
id_col TEXT DEFAULT 'cartodb_id', id_col TEXT DEFAULT 'cartodb_id',
w_type TEXT DEFAULT 'knn', w_type TEXT DEFAULT 'knn',
num_ngbrs INT DEFAULT 5) num_ngbrs INT DEFAULT 5)
RETURNS TABLE (moran FLOAT, quads TEXT, significance FLOAT, ids INT) RETURNS TABLE (moran NUMERIC, significance NUMERIC)
AS $$ AS $$
from crankshaft.clustering import moran_local from crankshaft.clustering import moran_local
# TODO: use named parameters or a dictionary # TODO: use named parameters or a dictionary
@ -43,7 +43,7 @@ CREATE OR REPLACE FUNCTION
id_col TEXT DEFAULT 'cartodb_id', id_col TEXT DEFAULT 'cartodb_id',
w_type TEXT DEFAULT 'knn', w_type TEXT DEFAULT 'knn',
num_ngbrs INT DEFAULT 5) num_ngbrs INT DEFAULT 5)
RETURNS TABLE (moran FLOAT, quads TEXT, significance FLOAT, ids INT) RETURNS TABLE (moran FLOAT, significance FLOAT)
AS $$ AS $$
from crankshaft.clustering import moran_local from crankshaft.clustering import moran_local
# TODO: use named parameters or a dictionary # TODO: use named parameters or a dictionary