-
Notifications
You must be signed in to change notification settings - Fork 64
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
Support for set returning functions that don't exist in DuckDB #483
Comments
HI, thanks for report. This is not a bug. Currently we don't have support for custom postgres function that could be used inside duckdb execution (but this is one of features that we would like to have in future). For example, consider this example that produce same
To address your question - how execution can be distinguish between pg or duckdb, for now,
|
Yes, I know what you mean. I was trying to get rid of the warning. |
Or when the function is in the from clause, we don't send it to duckdb for execution, Is that OK with you? |
I think this is something that we'll eventually want to support. But I think it should be built on top of the logic that we're implementing in #477. In #477 we push reading from postgres tables back down to postgres from duckdb. We should in theory be able to do the same for functions afaict. If the function exists in both postgres and DuckDB there's a choice we need to make though, if we push it down to PG or we use the DuckDB implementation. I'll re-open this issue to track this long term feature. But I don't expect we will start on this soon. First we need #477 merged before someone can even start on this. |
What happens?
When "Set Returning Function" as a FORM clause.
How can we distinguish between DuckDB execution and PG execution? I can't think of a solution yet.
To Reproduce
OS:
centos8
pg_duckdb Version (if built from source use commit hash):
main
Postgres Version (if built from source use commit hash):
16.6
Hardware:
No response
Full Name:
Man Zeng
Affiliation:
Halo
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have not tested with any build
Did you include all relevant data sets for reproducing the issue?
No - Other reason (please specify in the issue body)
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: