-
Notifications
You must be signed in to change notification settings - Fork 41
SQL execute error: SELECT count(*) FROM postgres.public.companies #345
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
Comments
Thanks for the report.
I don't think that will be enough to fix the issue here. There is a note there
Will have to check if that is actually the case still. Otherwise will have to handle empty schema manually in SqlExec with query |
I try it, and it solved the bug |
👍 Can you open a PR then? Thanks |
We might need to change the examples to use the federated tables by default - the existing logic works when federation is added, which is the most useful way to use the postgres table provider. Alternatively, we might need a way to detect if the table is being federated or not and change the schema being returned. |
run the postgres.rs in example;
function project_schema_safe at datafusion-table-providers/core/src/sql/sql_provider_datafusion/mod.rs : 235
should impl as following
The text was updated successfully, but these errors were encountered: