Skip to content

Commit fc669d5

Browse files
waitingkuoalamb
andauthored
[MINOR] Update SET in cli.md (#4098)
* Update cli.md add `SET` * prettier Co-authored-by: Andrew Lamb <[email protected]>
1 parent 695cedc commit fc669d5

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

docs/source/user-guide/cli.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,12 @@ Available commands inside DataFusion CLI are:
252252
253253
```
254254
255+
- Set configuration options
256+
257+
```SQL
258+
> SET datafusion.execution.batch_size to 1024;
259+
```
260+
255261
## Changing Configuration Options
256262
257263
All available configuration options can be seen using `SHOW ALL` as described above.
@@ -282,3 +288,29 @@ DataFusion CLI v12.0.0
282288
+-------------------------------------------------+---------+
283289
8 rows in set. Query took 0.002 seconds.
284290
```
291+
292+
You can change the configuration options using `SET` statement as well
293+
294+
```shell
295+
$ datafusion-cli
296+
DataFusion CLI v13.0.0
297+
298+
❯ show datafusion.execution.batch_size;
299+
+---------------------------------+---------+
300+
| name | setting |
301+
+---------------------------------+---------+
302+
| datafusion.execution.batch_size | 8192 |
303+
+---------------------------------+---------+
304+
1 row in set. Query took 0.011 seconds.
305+
306+
set datafusion.execution.batch_size to 1024;
307+
0 rows in set. Query took 0.000 seconds.
308+
309+
❯ show datafusion.execution.batch_size;
310+
+---------------------------------+---------+
311+
| name | setting |
312+
+---------------------------------+---------+
313+
| datafusion.execution.batch_size | 1024 |
314+
+---------------------------------+---------+
315+
1 row in set. Query took 0.005 seconds.
316+
```

0 commit comments

Comments
 (0)