-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
PREPARE statement doesn't work #51
Comments
Thank you for reporting, we'll get this fixed ASAP. |
AFAIK paradedb don't support pushdown PREPARE statement to duckdb now. In the executor hook, it should follow the prev_hook branch and then goes the FDW (this could avoid the warning). When executing "Execute test_query('example');", the query_desc.operation is CmdType_CMD_SELECT, but query text is "prepare xxx AS query ". So the code fail. I think there are two ways to solve this problem
|
Currently, the utility infrastructure is facing issues that need to be addressed:
Actually the issues mentioned above not only apply to the utility_hook but also in the executor_hook. However, they have been addressed by FDW and PostgreSQL query analysis. Now, we need to address them specifically within the utility hook. |
Thank you for highlighting this. Let's handle them first as you suggest. I'm excited for us to fix these limitations in the utility hook. |
Is this unblocked now that the EXPLAIN PR was merged? |
Yes, I'm working on pgrx to add some functions related to |
What happens?
I get this warning when I run the query and it takes forever:
WARNING: This query was not fully pushed down to DuckDB because DuckDB returned an error. Query times may be impacted. If you would like to see this query pushed down, please submit a request to https://github.com/paradedb/paradedb/issues with the following context:
Not implemented Error: Prepared statement argument types are not supported, use CAST
With this identical query it works in a few milliseconds:
DuckDB itself supports it: https://duckdb.org/docs/api/c/prepared.html
To Reproduce
Run the query from above
OS:
Ubuntu
ParadeDB Version:
v0.8.4
Are you using ParadeDB Docker, Helm, or the extension(s) standalone?
ParadeDB pg_lakehouse Extension
Full Name:
Janis
Affiliation:
Typewise
Did you include all relevant data sets for reproducing the issue?
Yes
Did you include the code required to reproduce the issue?
Did you include all relevant configurations (e.g., CPU architecture, PostgreSQL version, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: