HyukjinKwon commented on a change in pull request #33394: URL: https://github.com/apache/spark/pull/33394#discussion_r672050534
########## File path: python/pyspark/sql/readwriter.py ########## @@ -742,10 +743,16 @@ def save(self, path=None, format=None, mode=None, partitionBy=None, **options): def insertInto(self, tableName, overwrite=None): """Inserts the content of the :class:`DataFrame` to the specified table. + Optionally overwriting any existing data. + It requires that the schema of the :class:`DataFrame` is the same as the schema of the table. - Optionally overwriting any existing data. + Notes + ----- + Unlike `saveAsTable`, `insertInto` ignores the column names and just uses Review comment: Let's switch these to `` :meth:`DataFrameWriter.saveAsTable` ``, etc. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org