Skip to content

Apache DataFusion SQL Query Engine

minor(docs): Add docs for `regen.sh` (#13321)

Jonathan Chen221c85f4e451
diff --git a/docs/source/contributor-guide/howtos.md b/docs/source/contributor-guide/howtos.md
index e4515cee42..e303c2a0f0 100644
--- a/docs/source/contributor-guide/howtos.md
+++ b/docs/source/contributor-guide/howtos.md
@@ -132,3 +132,17 @@ After you've confirmed your `taplo` version, you can format all the `.toml` file
```bash
taplo fmt
```
+
+## How to update protobuf/gen dependencies
+
+The prost/tonic code can be generated by running `./regen.sh`, which in turn invokes the Rust binary located in [gen](./gen)
+
+This is necessary after modifying the protobuf definitions or altering the dependencies of [gen](./gen), and requires a
+valid installation of [protoc] (see [installation instructions] for details).
+
+```bash
+./regen.sh
+```
+
+[protoc]: https://github.com/protocolbuffers/protobuf#protocol-compiler-installation
+[installation instructions]: https://datafusion.apache.org/contributor-guide/getting_started.html#protoc-installation