Skip to content

Conversation

@alamb
Copy link
Contributor

@alamb alamb commented May 22, 2024

Which issue does this PR close?

Part of #10616

Rationale for this change

Inspired by @aditanase in #10617 and my own experience in #10549 I wanted to make it easier to find / discover how to register new object stores

What changes are included in this PR?

  1. Add SessionContext::register_object_store
  2. Add docs

Are these changes tested?

Are there any user-facing changes?

@github-actions github-actions bot added the core Core DataFusion crate label May 22, 2024
)
.await?;
state.runtime_env().register_object_store(url, store);
state.register_object_store(url, store);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

the point of this PR is to avoid having to do runtime_env()

@alamb alamb force-pushed the alamb/register_on_session_Context branch from a66f38a to 12f31a3 Compare May 22, 2024 14:24
@alamb alamb marked this pull request as ready for review May 22, 2024 20:44
Copy link
Contributor

@phillipleblanc phillipleblanc left a comment

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@comphead comphead left a comment

Choose a reason for hiding this comment

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

lgtm thanks @alamb for adding this more convenient method on SessionContext level

@comphead comphead merged commit b59f4af into apache:main May 23, 2024
@alamb alamb deleted the alamb/register_on_session_Context branch May 23, 2024 16:05
findepi pushed a commit to findepi/datafusion that referenced this pull request Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Core DataFusion crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants