-
Notifications
You must be signed in to change notification settings - Fork 584
Tsaucer/pycatalog register on add #11878
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
base: main
Are you sure you want to change the base?
Conversation
|
Web viewer built successfully.
View image diff on kitdiff. Note: This comment is updated whenever you push a commit. |
abey79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do I understand correctly that this means everywhere in the SDK implementation we must know if we might alter the catalog, and if we do, call update_catalog_providers? This seems extremely error prone. Matter of fact, I believe at least Entry.delete() should update the catalog provider as well. (I did the exact same mistake with our very fragile __entries table stuff on OSS server.)
Yes, I'm trying to figure out a better way. I have started a PR for upstream to expose |
|
For reference: apache/datafusion#18657 |
abey79
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed last week, let's go for this as is until we have the better solution. Could you do a cleanup pass on the tests though? The _patched version should disappear (test that spam a Server instead of using a fixture should be avoided). Also, IIRC there are two such _patched tests (probably can be found by searching the todo with the issue i had opened).
efe3333 to
cdde652
Compare
Related
Closes #11852
What
When new catalog providers are created, they are not automatically registered with the datafusion session context. This PR adds a check for new catalog providers when a table is created or registered.