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

Deep Learning module does not work with tables in non-public schemas

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • v1.17
    • Deep Learning
    • None

    Description

      I have tried both source table and model arch table in schemas to replicate the issue. It seems the quote indent is tripping up the validation code which causes the following error.

      madlib=# SELECT madlib_keras_fit(                                                                                      's1.t2',                                                                                                           'keras_saved_out',                                                                                                 'model_arch',                                                                                                      1,                                                                                                                 $$ optimizer=SGD(lr=0.01, decay=1e-6, nesterov=True), loss='categorical_crossentropy', metrics=['accuracy']$$::text,                                                                                                                  $$ batch_size=2, epochs=1, verbose=0 $$::text,                                                                     3);
      ERROR:  plpy.Error: madlib_keras_fit error: Input table '"s1.t2"' does not exist. (plpy_elog.c:121)
      CONTEXT:  Traceback (most recent call last):
        PL/Python function "madlib_keras_fit", line 21, in <module>
          madlib_keras.fit(**globals())
        PL/Python function "madlib_keras_fit", line 42, in wrapper
        PL/Python function "madlib_keras_fit", line 99, in fit
        PL/Python function "madlib_keras_fit", line 370, in __init__
        PL/Python function "madlib_keras_fit", line 260, in __init__
        PL/Python function "madlib_keras_fit", line 268, in _validate_common_args
        PL/Python function "madlib_keras_fit", line 674, in input_tbl_valid
      PL/Python function "madlib_keras_fit"
      

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            okislal Orhan Kislal
            okislal Orhan Kislal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment