diff --git a/datafusion/core/src/execution/context/mod.rs b/datafusion/core/src/execution/context/mod.rs index 621b214818e9..205e308b7c84 100644 --- a/datafusion/core/src/execution/context/mod.rs +++ b/datafusion/core/src/execution/context/mod.rs @@ -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,