---
title: WriterCommitMessage
description: "WriterCommitMessage class in PySpark: A commit message returned by DataSourceWriter.write and sent back to the driver as an input parameter of DataSourceWriter.commit or DataSourceWriter.abort."
canonical_url: https://docs.databricks.com/gcp/en/pyspark/reference/classes/writercommitmessage
---

# WriterCommitMessage

A commit message returned by `DataSourceWriter.write` and sent back to the driver as an input parameter of `DataSourceWriter.commit` or `DataSourceWriter.abort`.

*Added in Databricks Runtime 14.3 LTS*

## Syntax

```python
class MyCommitMessage(WriterCommitMessage):
    ...
```

## Notes

This class must be picklable.
