georgia-tech-db/evadb

11-similarity-search-for-motif-mining.ipynb does not work on Colab

xzdandy opened this issue · 1 comments

Search before asking

  • I have searched the EvaDB issues and found no similar bug report.

Bug

The function is not available on Colab.

cursor.query("""
    CREATE FUNCTION SiftFeatureExtractor
    IMPL '../evadb/functions/sift_feature_extractor.py'
""").df()

Environment

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

As a workaournd we can do the following:

from evadb.configuration.constants import EvaDB_INSTALLATION_DIR
cursor.query("DROP FUNCTION IF EXISTS SiftFeatureExtractor;").df()
cursor.query(f"""
    CREATE FUNCTION SiftFeatureExtractor
    IMPL '{EvaDB_INSTALLATION_DIR}/functions/sift_feature_extractor.py'
""").df()

We shall include EvaDB_INSTALLATION_DIR as searching path for functions in #1105