Skip to content

Commit 7be1894

Browse files
Address review comments
1 parent 3a99b2b commit 7be1894

2 files changed

Lines changed: 16 additions & 20 deletions

File tree

dev/update_config_docs.sh

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,24 @@ EOF
101101
echo "Running CLI and inserting config docs table"
102102
$PRINT_CONFIG_DOCS_COMMAND >> "$TARGET_FILE"
103103

104-
echo "Inserting runtime config header"
104+
echo "Inserting reset command details and runtime config header"
105105
cat <<'EOF' >> "$TARGET_FILE"
106106
107+
You can also reset configuration options to default settings via SQL using the `RESET` command. For
108+
example, to set and reset `datafusion.execution.batch_size`:
109+
110+
```sql
111+
SET datafusion.execution.batch_size = '10000';
112+
113+
SHOW datafusion.execution.batch_size;
114+
datafusion.execution.batch_size 10000
115+
116+
RESET datafusion.execution.batch_size;
117+
118+
SHOW datafusion.execution.batch_size;
119+
datafusion.execution.batch_size 8192
120+
```
121+
107122
# Runtime Configuration Settings
108123
109124
DataFusion runtime configurations can be set via SQL using the `SET` command.

docs/source/user-guide/configs.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -197,8 +197,6 @@ 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-
202200
You can also reset configuration options to default settings via SQL using the `RESET` command. For
203201
example, to set and reset `datafusion.execution.batch_size`:
204202

@@ -235,23 +233,6 @@ The following runtime configuration settings are available:
235233
| 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. |
236234
| datafusion.runtime.temp_directory | NULL | The path to the temporary file directory. |
237235

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-
255236
# Tuning Guide
256237

257238
## Short Queries

0 commit comments

Comments
 (0)