Skip to content

Commit 1af1b49

Browse files
committed
fix docs of register_table to match implementation
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.
1 parent 7bd7747 commit 1af1b49

File tree

1 file changed

+2
-2
lines changed
  • datafusion/core/src/execution/context

1 file changed

+2
-2
lines changed

datafusion/core/src/execution/context/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,8 +1312,8 @@ impl SessionContext {
13121312
/// Registers a [`TableProvider`] as a table that can be
13131313
/// referenced from SQL statements executed against this context.
13141314
///
1315-
/// Returns the [`TableProvider`] previously registered for this
1316-
/// reference, if any
1315+
/// If a table of the same name was already registered, returns "Table
1316+
/// already exists" error.
13171317
pub fn register_table(
13181318
&self,
13191319
table_ref: impl Into<TableReference>,

0 commit comments

Comments
 (0)