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 2020/12/21 20:48:42 UTC

[GitHub] [iceberg] karuppayya commented on a change in pull request #1933: Refactor Spark DF read and Write options

karuppayya commented on a change in pull request #1933:
URL: https://github.com/apache/iceberg/pull/1933#discussion_r546922331



##########
File path: site/docs/spark.md
##########
@@ -513,6 +535,27 @@ data.write
 
 The behavior of DataFrameWriter overwrite mode was undefined in Spark 2.4, but is required to overwrite the entire table in Spark 3. Because of this new requirement, the Iceberg source's behavior changed in Spark 3. In Spark 2.4, the behavior was to dynamically overwrite partitions. To use the Spark 2.4 behavior, add option `overwrite-mode=dynamic`.
 
+**Note**: Dataframe write options are available as static constants in [SparkWriteOptions](https://github.com/apache/iceberg/blob/master/core/src/main/java/org/apache/iceberg/types/SparkWriteOptions.java) class.
+
+| Spark write option           | Constant                    |
+| ---------------------- | -------------------------- |
+| write-format           | WRITE_FORMAT |
+| target-file-size-bytes | TARGET_FILE_SIZE_BYTES      |
+| check-nullability      | CHECK_NULLABILITY                       |
+| snapshot-property._custom-key_    |SNAPSHOT_PROPERTY_PREFIX._custom-key_)            |
+| fanout-enabled       | FANOUT_ENABLED        |
+| check-ordering       | CHECK_ORDERING        |
+
+Usage:
+```
+ex: spark

Review comment:
       done




----------------------------------------------------------------
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.

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