Skip to content
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

use Weak ptr to break catalog list <> info schema cyclic reference #681

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

crepererum
Copy link
Contributor

Fixes #680.

@github-actions github-actions bot added the datafusion Changes in the datafusion crate label Jul 5, 2021
Copy link
Contributor

@alamb alamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @crepererum

In case anyone is interested, I drew a picture of the cycle:


   ┌───────────────────────┐     
   │                       │     
   │   MemoryCatalogList   │◀───┐
   │                       │    │
   └───────────────────────┘    │
               │                │
               │                │
               ▼                │
┌────────────────────────────┐  │
│                            │  │
│CatalogWithInformationSchema│──┘
│                            │   
└────────────────────────────┘   

FWIW this was causing us trouble in IOx because our main object implements SchemaProvider and thus was kept around by this cycle

@alamb alamb merged commit 3664766 into apache:master Jul 7, 2021
@houqp houqp added the bug Something isn't working label Jul 31, 2021
andygrove added a commit to andygrove/datafusion that referenced this pull request Jan 31, 2025
* Unify IF and CASE expressions

* revert test changes

* fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working datafusion Changes in the datafusion crate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ExecutionContext w/ information schema leaks catalogs
3 participants