File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
datafusion/core/src/dataframe Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -1013,11 +1013,16 @@ impl DataFrame {
1013
1013
) )
1014
1014
}
1015
1015
1016
- /// Write this DataFrame to the referenced table
1016
+ /// Write this DataFrame to the referenced table by name.
1017
1017
/// This method uses on the same underlying implementation
1018
- /// as the SQL Insert Into statement.
1019
- /// Unlike most other DataFrame methods, this method executes
1020
- /// eagerly, writing data, and returning the count of rows written.
1018
+ /// as the SQL Insert Into statement. Unlike most other DataFrame methods,
1019
+ /// this method executes eagerly. Data is written to the table using an
1020
+ /// execution plan returned by the [TableProvider]'s insert_into method.
1021
+ /// Refer to the documentation of the specific [TableProvider] to determine
1022
+ /// the expected data returned by the insert_into plan via this method.
1023
+ /// For the built in ListingTable provider, a single [RecordBatch] containing
1024
+ /// a single column and row representing the count of total rows written
1025
+ /// is returned.
1021
1026
pub async fn write_table (
1022
1027
self ,
1023
1028
table_name : & str ,
You can’t perform that action at this time.
0 commit comments