You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/05/29 22:14:25 UTC

[GitHub] [iceberg] wypoon commented on a diff in pull request #4885: Docs: Fix a typo. Add using for writeTo when creating a table.

wypoon commented on code in PR #4885:
URL: https://github.com/apache/iceberg/pull/4885#discussion_r884330822


##########
docs/spark/spark-writes.md:
##########
@@ -287,13 +287,14 @@ To run a CTAS or RTAS, use `create`, `replace`, or `createOrReplace` operations:
 
 ```scala
 val data: DataFrame = ...
-data.writeTo("prod.db.table").create()
+data.writeTo("prod.db.table").using("iceberg").create()

Review Comment:
   Thanks for pointing that out. I did not actually know that. I usually use the `SparkSessionCatalog`.
   



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org