Skip to content

Commit

Permalink
Fix helper functions not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
pchunduri6 committed Nov 21, 2023
1 parent f6f3dda commit e1dac60
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion evadb/functions/function_bootstrap_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@
Upper_function_query = """CREATE FUNCTION IF NOT EXISTS UPPER
INPUT (input ANYTYPE)
OUTPUT (output NDARRAY STR(ANYDIM))
TYPE HelperFunction
IMPL '{}/functions/helpers/upper.py';
""".format(
EvaDB_INSTALLATION_DIR
Expand All @@ -225,6 +226,7 @@
Lower_function_query = """CREATE FUNCTION IF NOT EXISTS LOWER
INPUT (input ANYTYPE)
OUTPUT (output NDARRAY STR(ANYDIM))
TYPE HelperFunction
IMPL '{}/functions/helpers/lower.py';
""".format(
EvaDB_INSTALLATION_DIR
Expand All @@ -233,6 +235,7 @@
Concat_function_query = """CREATE FUNCTION IF NOT EXISTS CONCAT
INPUT (input ANYTYPE)
OUTPUT (output NDARRAY STR(ANYDIM))
TYPE HelperFunction
IMPL '{}/functions/helpers/concat.py';
""".format(
EvaDB_INSTALLATION_DIR
Expand Down Expand Up @@ -309,5 +312,5 @@ def init_builtin_functions(db: EvaDBDatabase, mode: str = "debug") -> None:
execute_query_fetch_all(
db, query, do_not_print_exceptions=False, do_not_raise_exceptions=True
)
except Exception:
except Exception as e:
pass

0 comments on commit e1dac60

Please sign in to comment.