Skip to content

Apache DataFusion SQL Query Engine

[MINOR] Update `SET` in cli.md (#4098)

Wei-Ting Kuofc669d589295
diff --git a/docs/source/user-guide/cli.md b/docs/source/user-guide/cli.md
index 246ab91896..91fe37d0d9 100644
--- a/docs/source/user-guide/cli.md
+++ b/docs/source/user-guide/cli.md
@@ -252,6 +252,12 @@ Available commands inside DataFusion CLI are:
```
+- Set configuration options
+
+```SQL
+> SET datafusion.execution.batch_size to 1024;
+```
+
## Changing Configuration Options
All available configuration options can be seen using `SHOW ALL` as described above.
@@ -282,3 +288,29 @@ DataFusion CLI v12.0.0
+-------------------------------------------------+---------+
8 rows in set. Query took 0.002 seconds.
```
+
+You can change the configuration options using `SET` statement as well
+
+```shell
+$ datafusion-cli
+DataFusion CLI v13.0.0
+
+❯ show datafusion.execution.batch_size;
++---------------------------------+---------+
+| name | setting |
++---------------------------------+---------+
+| datafusion.execution.batch_size | 8192 |
++---------------------------------+---------+
+1 row in set. Query took 0.011 seconds.
+
+❯ set datafusion.execution.batch_size to 1024;
+0 rows in set. Query took 0.000 seconds.
+
+❯ show datafusion.execution.batch_size;
++---------------------------------+---------+
+| name | setting |
++---------------------------------+---------+
+| datafusion.execution.batch_size | 1024 |
++---------------------------------+---------+
+1 row in set. Query took 0.005 seconds.
+```