Skip to content

Commit 6d8313e

Browse files
authored
fix docs of register_table to match implementation (#13438)
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 5ea1d31 commit 6d8313e

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
@@ -1428,8 +1428,8 @@ impl SessionContext {
14281428
/// Registers a [`TableProvider`] as a table that can be
14291429
/// referenced from SQL statements executed against this context.
14301430
///
1431-
/// Returns the [`TableProvider`] previously registered for this
1432-
/// reference, if any
1431+
/// If a table of the same name was already registered, returns "Table
1432+
/// already exists" error.
14331433
pub fn register_table(
14341434
&self,
14351435
table_ref: impl Into<TableReference>,

0 commit comments

Comments
 (0)