Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make built-in Functions easier to use #1105

Open
1 of 2 tasks
xzdandy opened this issue Sep 12, 2023 · 1 comment
Open
1 of 2 tasks

Make built-in Functions easier to use #1105

xzdandy opened this issue Sep 12, 2023 · 1 comment

Comments

@xzdandy
Copy link
Collaborator

xzdandy commented Sep 12, 2023

Search before asking

  • I have searched the EvaDB issues and found no similar feature requests.

Description

Currently, for built-in functions that are not loaded at bootstrap time. It is not easier to specify the path to the function in CREATE FUNCTION due to the installation python. Need a better support for built-in functions to improve user experience.

Use case

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!
@xzdandy
Copy link
Collaborator Author

xzdandy commented Oct 11, 2023

A workaround now is 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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

1 participant