Skip to content

Commit 3a99b2b

Browse files
docs: Add RESET Command Documentation
1 parent 1a0af76 commit 3a99b2b

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

docs/source/user-guide/configs.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,23 @@ The following configuration settings are available:
197197
| datafusion.format.duration_format | pretty | Duration format. Can be either `"pretty"` or `"ISO8601"` |
198198
| datafusion.format.types_info | false | Show types in visual representation batches |
199199

200+
# Reset Configuration Settings
201+
202+
You can also reset configuration options to default settings via SQL using the `RESET` command. For
203+
example, to set and reset `datafusion.execution.batch_size`:
204+
205+
```sql
206+
SET datafusion.execution.batch_size = '10000';
207+
208+
SHOW datafusion.execution.batch_size;
209+
datafusion.execution.batch_size 10000
210+
211+
RESET datafusion.execution.batch_size;
212+
213+
SHOW datafusion.execution.batch_size;
214+
datafusion.execution.batch_size 8192
215+
```
216+
200217
# Runtime Configuration Settings
201218

202219
DataFusion runtime configurations can be set via SQL using the `SET` command.
@@ -218,6 +235,23 @@ The following runtime configuration settings are available:
218235
| datafusion.runtime.metadata_cache_limit | 50M | Maximum memory to use for file metadata cache such as Parquet metadata. Supports suffixes K (kilobytes), M (megabytes), and G (gigabytes). Example: '2G' for 2 gigabytes. |
219236
| datafusion.runtime.temp_directory | NULL | The path to the temporary file directory. |
220237

238+
# Reset Runtime Configuration Settings
239+
240+
You can also reset runtime configuration options to default settings via SQL using the `RESET` command. For
241+
example, to set and reset `datafusion.runtime.list_files_cache_limit`:
242+
243+
```sql
244+
SET datafusion.runtime.list_files_cache_limit = '10M';
245+
246+
SHOW datafusion.runtime.list_files_cache_limit;
247+
datafusion.runtime.list_files_cache_limit 10M
248+
249+
RESET datafusion.runtime.list_files_cache_limit;
250+
251+
SHOW datafusion.runtime.list_files_cache_limit;
252+
datafusion.runtime.list_files_cache_limit 1M
253+
```
254+
221255
# Tuning Guide
222256

223257
## Short Queries

0 commit comments

Comments
 (0)