Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0C5D5200D53 for ; Mon, 20 Nov 2017 23:30:52 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0AFE9160BE1; Mon, 20 Nov 2017 22:30:52 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2670F160C0D for ; Mon, 20 Nov 2017 23:30:51 +0100 (CET) Received: (qmail 14772 invoked by uid 500); 20 Nov 2017 22:30:50 -0000 Mailing-List: contact dev-help@madlib.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@madlib.apache.org Delivered-To: mailing list dev@madlib.apache.org Received: (qmail 14623 invoked by uid 99); 20 Nov 2017 22:30:49 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2017 22:30:49 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id CF7A6DFC2F; Mon, 20 Nov 2017 22:30:49 +0000 (UTC) From: iyerr3 To: dev@madlib.apache.org Reply-To: dev@madlib.apache.org References: In-Reply-To: Subject: [GitHub] madlib pull request #204: Added additional distance metrics for k-NN: Jira-1... Content-Type: text/plain Message-Id: <20171120223049.CF7A6DFC2F@git1-us-west.apache.org> Date: Mon, 20 Nov 2017 22:30:49 +0000 (UTC) archived-at: Mon, 20 Nov 2017 22:30:52 -0000 Github user iyerr3 commented on a diff in the pull request: https://github.com/apache/madlib/pull/204#discussion_r152123514 --- Diff: src/ports/postgres/modules/knn/knn.py_in --- @@ -88,12 +88,28 @@ def knn_validate_src(schema_madlib, point_source, point_column_name, point_id, plpy.error("kNN Error: Data type '{0}' is not a valid type for" " column '{1}' in table '{2}'.". format(col_type_test, test_id, test_source)) + + fn_dist = fn_dist.lower().strip() --- End diff -- What's the expected behavior if `fn_dist = None` (i.e. user inputs `NULL` for the `fn_dist`)? ---