Github user iyerr3 commented on a diff in the pull request:
https://github.com/apache/madlib/pull/204#discussion_r152420416
--- Diff: src/ports/postgres/modules/knn/knn.py_in ---
@@ -155,6 +155,9 @@ def knn(schema_madlib, point_source, point_column_name,
point_id, label_column_n
if output_neighbors is None:
output_neighbors = True
+ if not fn_dist or fn_dist is None:
--- End diff --
again, only need the `if not fn_dist` ---
