Skip to content

Commit 7cd0778

Browse files
committed
Consolidate configuration sectionds in docs
1 parent 8ed3dc4 commit 7cd0778

6 files changed

Lines changed: 40 additions & 121 deletions

File tree

.github/workflows/rust.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -707,11 +707,6 @@ jobs:
707707
# If you encounter an error, run './dev/update_function_docs.sh' and commit
708708
./dev/update_function_docs.sh
709709
git diff --exit-code
710-
- name: Check if runtime_configs.md has been modified
711-
run: |
712-
# If you encounter an error, run './dev/update_runtime_config_docs.sh' and commit
713-
./dev/update_runtime_config_docs.sh
714-
git diff --exit-code
715710
716711
# Verify MSRV for the crates which are directly used by other projects:
717712
# - datafusion

dev/update_config_docs.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ cd "${SOURCE_DIR}/../" && pwd
2525

2626
TARGET_FILE="docs/source/user-guide/configs.md"
2727
PRINT_CONFIG_DOCS_COMMAND="cargo run --manifest-path datafusion/core/Cargo.toml --bin print_config_docs"
28+
PRINT_RUNTIME_CONFIG_DOCS_COMMAND="cargo run --manifest-path datafusion/core/Cargo.toml --bin print_runtime_config_docs"
29+
2830

2931
echo "Inserting header"
3032
cat <<'EOF' > "$TARGET_FILE"
@@ -70,6 +72,27 @@ EOF
7072
echo "Running CLI and inserting config docs table"
7173
$PRINT_CONFIG_DOCS_COMMAND >> "$TARGET_FILE"
7274

75+
echo "Inserting runtime config header"
76+
cat <<'EOF' >> "$TARGET_FILE"
77+
78+
# Runtime Environment Configurations
79+
80+
DataFusion runtime configurations can be set via SQL using the `SET` command.
81+
82+
For example, to configure `datafusion.runtime.memory_limit`:
83+
84+
```sql
85+
SET datafusion.runtime.memory_limit = '2G';
86+
```
87+
88+
The following runtime configuration settings are available:
89+
90+
EOF
91+
92+
echo "Running CLI and inserting runtime config docs table"
93+
$PRINT_RUNTIME_CONFIG_DOCS_COMMAND >> "$TARGET_FILE"
94+
95+
7396
echo "Running prettier"
7497
npx prettier@2.3.2 --write "$TARGET_FILE"
7598

dev/update_runtime_config_docs.sh

Lines changed: 0 additions & 76 deletions
This file was deleted.

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,5 @@
125125

126126
redirects = {
127127
"library-user-guide/adding-udfs": "functions/index.html",
128+
"user-guide/runtime_configs": "user_guide/configs.html",
128129
}

docs/source/user-guide/configs.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,3 +144,19 @@ Environment variables are read during `SessionConfig` initialisation so they mus
144144
| datafusion.format.time_format | %H:%M:%S%.f | Time format for time arrays |
145145
| datafusion.format.duration_format | pretty | Duration format. Can be either `"pretty"` or `"ISO8601"` |
146146
| datafusion.format.types_info | false | Show types in visual representation batches |
147+
148+
# Runtime Environment Configurations
149+
150+
DataFusion runtime configurations can be set via SQL using the `SET` command.
151+
152+
For example, to configure `datafusion.runtime.memory_limit`:
153+
154+
```sql
155+
SET datafusion.runtime.memory_limit = '2G';
156+
```
157+
158+
The following runtime configuration settings are available:
159+
160+
| key | default | description |
161+
| ------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------- |
162+
| datafusion.runtime.memory_limit | NULL | Maximum memory limit for query execution. Supports suffixes K (kilobytes), M (megabytes), and G (gigabytes). Example: '2G' for 2 gigabytes. |

docs/source/user-guide/runtime_configs.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)