Uploaded image for project: 'Apache MADlib'
  1. Apache MADlib
  2. MADLIB-1184

k-NN install check fails on non-madlib schema name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v1.13
    • k-NN
    • None

    Description

      The install check fails when MADlib is installed on a schema named
      anything other than `madlib`. The issue seems to be because the fn_dist
      param expects a distance function name prefixed with `<madlib_schema>.`

      With MADlib installed on schema `mad`, the following error happens:

      psql:/tmp/madlib.OIue8c/knn/test/knn.sql_in.tmp:155: ERROR:  spiexceptions.InvalidSchemaName: schema "madlib" does not exist
      LINE 3:                 oid='madlib.squared_dist_norm2(DOUBLE PRECIS...
                                  ^
      QUERY:  select prorettype != 'DOUBLE PRECISION'::regtype
                      OR proisagg = TRUE AS OUTPUT from pg_proc where
                      oid='madlib.squared_dist_norm2(DOUBLE PRECISION[], DOUBLE PRECISION[])'::regprocedure;
      
      CONTEXT:  Traceback (most recent call last):
        PL/Python function "knn", line 35, in <module>
          fn_dist
        PL/Python function "knn", line 147, in knn
        PL/Python function "knn", line 100, in knn_validate_src
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              njayaram Nandish Jayaram
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: