Skip to content

Commit

Permalink
[MINOR] Update SET in cli.md (apache#4098)
Browse files Browse the repository at this point in the history
* Update cli.md

add `SET`

* prettier

Co-authored-by: Andrew Lamb <[email protected]>
  • Loading branch information
2 people authored and Ted-Jiang committed Nov 5, 2022
1 parent c18777e commit 024d543
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/source/user-guide/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
```

0 comments on commit 024d543

Please sign in to comment.