rdblue commented on a change in pull request #1933: URL: https://github.com/apache/iceberg/pull/1933#discussion_r546858248
########## 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: Same comment here as above. ---------------------------------------------------------------- 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: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
