Skip to content
Merged
Changes from 4 commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5bebdc8
Update the setting defaults in sql plugin
LantaoJin Nov 27, 2025
97697be
Doc review
kolchfa-aws Dec 2, 2025
fcce1dd
Revert "Doc review"
LantaoJin Dec 4, 2025
45c403b
add a new config plugins.ppl.query.timeout
LantaoJin Dec 4, 2025
06e9975
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
222ae42
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
49a0709
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
52de914
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
e9957ab
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
3693b65
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
1e3aa43
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
902cae9
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
77f3701
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
1b7d76e
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
c85e511
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
0ede38c
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
29c0159
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
fd884ef
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
d4c33f2
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
4b74c80
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
be22766
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
1e13f6f
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
0c8a38a
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
5b965a3
Update _search-plugins/sql/settings.md
LantaoJin Dec 5, 2025
168ea22
Apply suggestions from code review
natebower Dec 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions _search-plugins/sql/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,18 +72,32 @@

Setting | Default | Description
:--- | :--- | :---
`plugins.sql.enabled` | True | Change to `false` to disable the `SQL` support in the plugin.
`plugins.ppl.enabled` | True | Change to `false` to disable the `PPL` support in the plugin.
`plugins.sql.slowlog` | 2 seconds | Configures the time limit (in seconds) for slow queries. The plugin logs slow queries as `Slow query: elapsed=xxx (ms)` in `opensearch.log`.
`plugins.sql.cursor.keep_alive` | 1 minute | Configures how long the cursor context is kept open. Cursor contexts are resource-intensive, so we recommend a low value.
`plugins.query.memory_limit` | 85% | Configures the heap memory usage limit for the circuit breaker of the query engine.
`plugins.query.size_limit` | 10000 | Sets the default size of index that the query engine fetches from OpenSearch.
`plugins.query.datasources.enabled` | true | Change to `false` to disable support for data sources in the plugin.
`plugins.query.field_type_tolerance` | true | If `false`, then an array is reduced to the first non-array value at any nesting level. For example, `[[1, 2], [3, 4]]` will be reduced to `1`. If `true`, then the array is preserved. Default is `true`.
`plugins.calcite.enabled` | true | Enables the Apache Calcite query engine, including advanced SQL and PPL capabilities such as subsearches, joins, and lookup operations.
`plugins.calcite.all_join_types.allowed` | false | Enables performance-sensitive join types, like `RIGHT`, `FULL`, and `CROSS` joins. Change to `true` to allow these join operations.
`plugins.ppl.syntax.legacy.preferred` | true | Controls certain PPL syntax behaviors, including default argument values. When `false`, uses newer syntax standards.
`plugins.ppl.values.max.limit` | 0 | Sets the maximum number of unique values that the `VALUES` aggregation function can return. A value of `0` indicates no limit.
`plugins.sql.enabled` | `true` | Change to `false` to disable the `SQL` support in the plugin.
`plugins.ppl.enabled` | `true` | Change to `false` to disable the `PPL` support in the plugin.
`plugins.sql.slowlog` | `2` | Configures the time limit (in seconds) for slow queries. The plugin logs slow queries as `Slow query: elapsed=xxx (ms)` in `opensearch.log`.
`plugins.sql.cursor.keep_alive` | `1m` | Configures how long the cursor context is kept open. Cursor contexts are resource-intensive, so we recommend a low value.
`plugins.query.memory_limit` | `85%` | Configures the heap memory usage limit for the circuit breaker of the query engine.
`plugins.query.size_limit` | `10000` | Sets the maximum amount of rows returned from a query execution results.
`plugins.query.datasources.enabled` | `true` | Change to `false` to disable support for data sources in the plugin.
`plugins.query.field_type_tolerance` | `true` | If `false`, then an array is reduced to the first non-array value at any nesting level. For example, `[[1, 2], [3, 4]]` will be reduced to `1`. If `true`, then the array is preserved. Default is `true`.
`plugins.query.buckets` | `10000` | Sets how many aggregation buckets will return in a single response. The default value equals to `plugins.query.size_limit`.
`plugins.calcite.enabled` | `true` | Enables the Apache Calcite query engine, including advanced SQL and PPL capabilities such as subsearch, join, and lookup operations.

Check failure on line 84 in _search-plugins/sql/settings.md

View workflow job for this annotation

GitHub Actions / style-job

[vale] reported by reviewdog 🐶 [OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks. Raw Output: {"message": "[OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_search-plugins/sql/settings.md", "range": {"start": {"line": 84, "column": 131}}}, "severity": "ERROR"}
`plugins.calcite.pushdown.enabled` | `true` | Change to `false` to disable the operator push-down optimization. We recommend using the default value.
`plugins.calcite.fallback.allowed` | `false` | Change to `true` to allow fallback to v2 engine.
`plugins.calcite.pushdown.rowcount.estimation.factor` | `0.9` | The value is a factor to multiply the row count of the table scan to get the estimated row count. We recommend using the default value.
`plugins.calcite.all_join_types.allowed` | `false` | Enables performance-sensitive join types, like `RIGHT`, `FULL`, and `CROSS` joins. Change to `true` to allow these join operations.
`plugins.ppl.syntax.legacy.preferred` | `true` | Controls certain PPL syntax behaviors, including default argument values. When `false`, uses newer syntax standards.
`plugins.ppl.values.max.limit` | `0` | Sets the maximum number of unique values that the `VALUES` aggregation function can return. A value of `0` indicates no limit.
`plugins.ppl.rex.max_match.limit` | `10` | Maximum number of matches to extract in `rex` command.
`plugins.ppl.subsearch.maxout` | `10000` | Sets the maximum of rows to return from subsearch.

Check failure on line 92 in _search-plugins/sql/settings.md

View workflow job for this annotation

GitHub Actions / style-job

[vale] reported by reviewdog 🐶 [OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks. Raw Output: {"message": "[OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_search-plugins/sql/settings.md", "range": {"start": {"line": 92, "column": 84}}}, "severity": "ERROR"}
`plugins.ppl.join.subsearch_maxout` | `50000` | Sets the maximum of rows from subsearch to join against.

Check failure on line 93 in _search-plugins/sql/settings.md

View workflow job for this annotation

GitHub Actions / style-job

[vale] reported by reviewdog 🐶 [OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks. Raw Output: {"message": "[OpenSearch.Spelling] Error: subsearch. If you are referencing a setting, variable, format, function, or repository, surround it with tic marks.", "location": {"path": "_search-plugins/sql/settings.md", "range": {"start": {"line": 93, "column": 79}}}, "severity": "ERROR"}
`plugins.ppl.pattern.method` | `"simple_pattern"` | Sets the default patterns method. Another supported method is "brain".
`plugins.ppl.pattern.mode` | `"label"` | Sets the default patterns mode. Another supported mode is "aggregation".
`plugins.ppl.pattern.max.sample.count` | `10` | Sets the default max sample logs returned per pattern in aggregation mode.
`plugins.ppl.pattern.buffer.limit` | `100000` | Sets the default size of internal temporary buffer used in "brain" algorithm.
`plugins.ppl.pattern.show.numbered.token` | `false` | Change to `true` to turn on numbered token output format.
`plugins.ppl.pattern.show.numbered.token` | `false` | Change to `true` to turn on numbered token output format.
`plugins.ppl.query.timeout` | `5m` | Configures the maximum execution time for PPL queries. When a query exceeds this timeout, it will be interrupted and return a timeout error.

## Spark connector settings

Expand Down
Loading