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

Latest commit gives an catalog error (while running phoenix-analytics) #39

Closed
Terbium-135 opened this issue Feb 11, 2025 · 6 comments
Closed

Comments

@Terbium-135
Copy link

Terbium-135 commented Feb 11, 2025

while running phoenix-analytics , which depends on duckdbex, I get following error since commit 2eacc62

Catalog Error: Scalar Function with name "get_current_timestamp" is not in the catalog, but it exists in the core_functions extension.

Please try installing and loading the core_functions extension by running:
INSTALL core_functions;
LOAD core_functions;

Alternatively, consider enabling auto-install and auto-load by running:
SET autoinstall_known_extensions=1;
SET autoload_known_extensions=1;
@AlexR2D2
Copy link
Owner

AlexR2D2 commented Feb 11, 2025

DuckDB dev team move some core functions to core_functions extension.

You need to install this extension

{:ok, db} = Duckdbex.open("analytics.duckdb")
{:ok, conn} = Duckdbex.connection(db)
{:ok, _} = Duckdbex.query(conn,  "INSTALL core_functions;")
{:ok, _} = Duckdbex.query(conn,  "LOAD core_functions;")

Alternatively, consider enabling auto-install and auto-load by running:

{:ok, _} = Duckdbex.query(conn,  "SET autoinstall_known_extensions=1;")
{:ok, _} = Duckdbex.query(conn,  "SET autoload_known_extensions=1;")

I think you need to forward this issue to phoenix-analytics, so that they install this extension automatically for your.
As workaround you can try to open you DB "analytics.duckdb" and run the queries to instal extension by yourself.

@Terbium-135
Copy link
Author

Thanks a lot for the quick response!
Will forward.

@dantodor
Copy link

For the record, I tried that, but at lest on my Mac it says that it can't find the extension. And also setting to autoinstall and autoload does nothing, probably because the same reason. ATM, I'll just use 0.3.7

@AlexR2D2
Copy link
Owner

@dantodor by the way is your Mac on Intel chipset?

@dantodor
Copy link

M2, MacBook Pro

@dantodor
Copy link

dantodor commented Feb 12, 2025

OK, my mistake. I was using duckdb 1.1.3 and issuing the load and install commands. After upgrading, it works.

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

No branches or pull requests

3 participants