-
Notifications
You must be signed in to change notification settings - Fork 52
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
Misleading error when using read_xxx
functions with invalid URLs
#106
Labels
enhancement
New feature or request
Milestone
Comments
Once we merge #123 we can use/cache the NeedsDuckdbExecution function and fail with an ERROR instead of WARNING when execution in DuckDB fails. i.e. for queries where NeedsDuckdbExecution returns true there's no point in retrying the query in postgres. |
JelteF
added a commit
that referenced
this issue
Oct 13, 2024
Previously the error would be shown as a WARNING and then the query would be run as a fallback using the Postgres executor, which would fail because the DuckDB `read_csv`/`read_parquet` functions cannot be executed by the Postgres executor. This is quite confusing as many people only look at the last ERROR, and not the warnings before. This is also relevant for MotherDuck support, since the MotherDuck backed tables can only be read using the DuckDB executor. Fixes #106
JelteF
added a commit
that referenced
this issue
Oct 13, 2024
Previously the error would be shown as a WARNING and then the query would be run as a fallback using the Postgres executor, which would fail because the DuckDB `read_csv`/`read_parquet` functions cannot be executed by the Postgres executor. This is quite confusing as many people only look at the last ERROR, and not the warnings before. This is also relevant for MotherDuck support, since the MotherDuck backed tables can only be read using the DuckDB executor. Fixes #106
JelteF
added a commit
that referenced
this issue
Oct 14, 2024
Previously the error would be shown as a WARNING and then the query would be run as a fallback using the Postgres executor, which would fail because the DuckDB `read_csv`/`read_parquet` functions cannot be executed by the Postgres executor. This is quite confusing as many people only look at the last ERROR, and not the warnings before. This is also relevant for MotherDuck support, since the MotherDuck backed tables can only be read using the DuckDB executor. Fixes #106 Related to #209 (the error there looks terribly confusing)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I get
ERROR: Function `read_csv(TEXT)` only works with Duckdb execution.
when usingread_csv
(along with the actual error as a warning):I would expect the
WARNING
to be theERROR
and theERROR
to not show.The text was updated successfully, but these errors were encountered: