Apache DataFusion SQL Query Engine
Add CI check that configs.md is up-to-date (#4124)
mvanschellebeeckc1fc7322d87d
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.ymlindex c3cc2df6ec..61229d8254 100644--- a/.github/workflows/rust.yml+++ b/.github/workflows/rust.yml@@ -477,3 +477,36 @@ jobs:# ignore ./Cargo.toml because putting workspaces in multi-line lists make it easy to readci/scripts/rust_toml_fmt.shgit diff --exit-code++ config-docs-check:+ name: check configs.md is up-to-date+ needs: [linux-build-lib]+ runs-on: ubuntu-latest+ container:+ image: amd64/rust+ env:+ # Disable full debug symbol generation to speed up CI build and keep memory down+ # "1" means line tables only, which is useful for panic tracebacks.+ RUSTFLAGS: "-C debuginfo=1"+ steps:+ - uses: actions/checkout@v3+ with:+ submodules: true+ - name: Cache Cargo+ uses: actions/cache@v3+ with:+ path: /github/home/.cargo+ # this key equals the ones on `linux-build-lib` for re-use+ key: cargo-cache-+ - name: Setup Rust toolchain+ uses: ./.github/actions/setup-builder+ with:+ rust-version: stable+ - uses: actions/setup-node@v3+ with:+ node-version: "14"+ - name: Check if configs.md has been modified+ run: |+ # If you encounter an error, run './dev/update_config_docs.sh' and commit+ ./dev/update_config_docs.sh+ git diff --exit-codediff --git a/docs/source/user-guide/configs.md b/docs/source/user-guide/configs.mdindex 0e2810ef28..1b82037d03 100644--- a/docs/source/user-guide/configs.md+++ b/docs/source/user-guide/configs.md@@ -37,15 +37,16 @@ Environment variables are read during `SessionConfig` initialisation so they mus| key | type | default | description || ----------------------------------------------- | ------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| datafusion.catalog.location | Utf8 | NULL | Location scanned to load tables for `default` schema |-| datafusion.catalog.type | Utf8 | NULL | Type of `TableProvider` to use when loading `default` schema |+| datafusion.catalog.location | Utf8 | NULL | Location scanned to load tables for `default` schema, defaults to None |+| datafusion.catalog.type | Utf8 | NULL | Type of `TableProvider` to use when loading `default` schema. Defaults to None || datafusion.execution.batch_size | UInt64 | 8192 | Default batch size while creating new batches, it's especially useful for buffer-in-memory batches since creating tiny batches would results in too much metadata memory consumption. || datafusion.execution.coalesce_batches | Boolean | true | When set to true, record batches will be examined between each operator and small batches will be coalesced into larger batches. This is helpful when there are highly selective filters or joins that could produce tiny output batches. The target batch size is determined by the configuration setting 'datafusion.execution.coalesce_target_batch_size'. || datafusion.execution.coalesce_target_batch_size | UInt64 | 4096 | Target batch size when coalescing batches. Uses in conjunction with the configuration setting 'datafusion.execution.coalesce_batches'. || datafusion.execution.parquet.enable_page_index | Boolean | false | If true, uses parquet data page level metadata (Page Index) statistics to reduce the number of rows decoded. || datafusion.execution.parquet.pushdown_filters | Boolean | false | If true, filter expressions are be applied during the parquet decoding operation to reduce the number of rows decoded. || datafusion.execution.parquet.reorder_filters | Boolean | false | If true, filter expressions evaluated during the parquet decoding opearation will be reordered heuristically to minimize the cost of evaluation. If false, the filters are applied in the same order as written in the query. |-| datafusion.execution.time_zone | Utf8 | UTC | The session time zone which some function require e.g. EXTRACT(HOUR from SOME_TIME) shift the underline datetime according to the time zone, then extract the hour. |+| datafusion.execution.time_zone | Utf8 | +00:00 | The session time zone which some function require e.g. EXTRACT(HOUR from SOME_TIME) shift the underline datetime according to the time zone, |+| then extract the hour. || datafusion.explain.logical_plan_only | Boolean | false | When set to true, the explain statement will only print logical plans. || datafusion.explain.physical_plan_only | Boolean | false | When set to true, the explain statement will only print physical plans. || datafusion.optimizer.filter_null_join_keys | Boolean | false | When set to true, the optimizer will insert filters before a join between a nullable and non-nullable column to filter out nulls on the nullable side. This filter can add additional overhead when the file format does not fully support predicate push down. |