Apache DataFusion SQL Query Engine
Minor: Update DataFrame::write_table docs (#9169)
Andrew Lamb1a9b0693c3c2
diff --git a/datafusion/core/src/dataframe/mod.rs b/datafusion/core/src/dataframe/mod.rsindex 2397d011d4..237f14d2c0 100644--- a/datafusion/core/src/dataframe/mod.rs+++ b/datafusion/core/src/dataframe/mod.rs@@ -1106,17 +1106,15 @@ impl DataFrame {))}- /// Write this DataFrame to the referenced table by name.- ///- /// This method uses on the same underlying implementation- /// as the SQL Insert Into statement. Unlike most other DataFrame methods,- /// this method executes eagerly. Data is written to the table using an- /// execution plan returned by the [TableProvider]'s insert_into method.- /// Refer to the documentation of the specific [TableProvider] to determine- /// the expected data returned by the insert_into plan via this method.- /// For the built in ListingTable provider, a single [RecordBatch] containing- /// a single column and row representing the count of total rows written- /// is returned.+ /// Execute this `DataFrame` and write the results to `table_name`.+ ///+ /// Returns a single [RecordBatch] containing a single column and+ /// row representing the count of total rows written.+ ///+ /// Unlike most other `DataFrame` methods, this method executes eagerly.+ /// Data is written to the table using the [`TableProvider::insert_into`]+ /// method. This is the same underlying implementation used by SQL `INSERT+ /// INTO` statements.pub async fn write_table(self,table_name: &str,