Skip to content

Commit

Permalink
fix docs of register_table to match implementation
Browse files Browse the repository at this point in the history
I'm not sure that changing the implementation is possible at this point. We could call deregister_table but I fear that's not atomic. So we'd have to change the implementation of SchemaProvider, a breaking change.
  • Loading branch information
adriangb committed Nov 15, 2024
1 parent 7bd7747 commit 1af1b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datafusion/core/src/execution/context/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1312,8 +1312,8 @@ impl SessionContext {
/// Registers a [`TableProvider`] as a table that can be
/// referenced from SQL statements executed against this context.
///
/// Returns the [`TableProvider`] previously registered for this
/// reference, if any
/// If a table of the same name was already registered, returns "Table
/// already exists" error.
pub fn register_table(
&self,
table_ref: impl Into<TableReference>,
Expand Down

0 comments on commit 1af1b49

Please sign in to comment.