-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Python register doesn't support schema #4723
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
We don't currently support creating a view in a specific schema as far as I can see. This way the object would still be stored in the temp schema, but when using the DuckDBPyConnection API that would be hidden from you, and querying 'a.view', 'b.view' would not result in the same view. |
Currently select * from "stage.test_table" does work (with schema= select * from temp."stage.test_table" Just to help me understand, is this what you're suggesting to do (under the hood)? |
Yes, I started looking into this, but it might be a bit harder than I anticipated, because we would need to intercept the query and check that it's asking for one of the views we registered. |
It looks from the |
Correct, I believe they fall under the temporary views
|
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days. |
This issue was closed because it has been stale for 30 days with no activity. |
* Push down inequalities into Nested Loop Joins * Included benchmark runs about 10x faster with the change.
* PR Feedback: optional_ptr
fixes: duckdblabs/duckdb-internal#4723
* Push down inequalities into Piecewise Merge Joins
* Included benchmark runs about 6x (0.19 vs 0.03) faster with the change.
fixes: duckdblabs/duckdb-internal#4797
* Push down inequalities into Piecewise Merge Joins * Included benchmark runs about 6x (0.19 vs 0.03) faster with the change. fixes: duckdblabs/duckdb-internal#4797
Internal duckdb/duckdb#4723: Inequality Condition Pushdown (duckdb/duckdb#17317)
Internal duckdb/duckdb#4723: PWMJ Inequality Pushdown (duckdb/duckdb#17400)
Internal duckdb/duckdb#4723: Inequality Condition Pushdown (duckdb/duckdb#17317)
Internal duckdb/duckdb#4723: PWMJ Inequality Pushdown (duckdb/duckdb#17400)
Internal duckdb/duckdb#4723: Inequality Condition Pushdown (duckdb/duckdb#17317)
Internal duckdb/duckdb#4723: PWMJ Inequality Pushdown (duckdb/duckdb#17400)
Internal duckdb/duckdb#4723: Inequality Condition Pushdown (duckdb/duckdb#17317)
Internal duckdb/duckdb#4723: PWMJ Inequality Pushdown (duckdb/duckdb#17400)
What happens?
When registering a dataframe the schema isn't interpreted but the table is registered in the
temp
schema. Instead I'd like to be able to register tables in any schema.To Reproduce
When I try to access the table I get the following error
Inspecting the
information_schema
the table isn't saved in mystage
schema but in thetemp
schemaAccessing the table using quote identifiers works because of this but isn't the expected behaviour
If the table is created instead of registered as a view the it works as expected
I've tried this on
master
(15/9/22) and the issue is still thereOS:
MacOS
DuckDB Version:
0.4.0
DuckDB Client:
Python
Full Name:
Luke Dyer
Affiliation:
Peak AI
Have you tried this on the latest
master
branch?Have you tried the steps to reproduce? Do they include all relevant data and configuration? Does the issue you report still appear there?
The text was updated successfully, but these errors were encountered: