Skip to content

Commit e1e4e24

Browse files
LantaoJinkolchfa-awsnatebower
authored
Update the setting defaults in sql plugin (#11598)
* Update the setting defaults in sql plugin Signed-off-by: Lantao Jin <[email protected]> * Doc review Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Revert "Doc review" This reverts commit b7fa236. Signed-off-by: Lantao Jin <[email protected]> * add a new config plugins.ppl.query.timeout Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Update _search-plugins/sql/settings.md Co-authored-by: kolchfa-aws <[email protected]> Signed-off-by: Lantao Jin <[email protected]> * Apply suggestions from code review Signed-off-by: Nathan Bower <[email protected]> --------- Signed-off-by: Lantao Jin <[email protected]> Signed-off-by: Fanit Kolchina <[email protected]> Signed-off-by: Lantao Jin <[email protected]> Signed-off-by: Nathan Bower <[email protected]> Co-authored-by: Fanit Kolchina <[email protected]> Co-authored-by: kolchfa-aws <[email protected]> Co-authored-by: Nathan Bower <[email protected]>
1 parent 4fe857e commit e1e4e24

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

_search-plugins/sql/settings.md

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -72,18 +72,31 @@ Requests to the `_plugins/_ppl` and `_plugins/_sql` endpoints include index name
7272

7373
Setting | Default | Description
7474
:--- | :--- | :---
75-
`plugins.sql.enabled` | True | Change to `false` to disable the `SQL` support in the plugin.
76-
`plugins.ppl.enabled` | True | Change to `false` to disable the `PPL` support in the plugin.
77-
`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`.
78-
`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.
79-
`plugins.query.memory_limit` | 85% | Configures the heap memory usage limit for the circuit breaker of the query engine.
80-
`plugins.query.size_limit` | 10000 | Sets the default size of index that the query engine fetches from OpenSearch.
81-
`plugins.query.datasources.enabled` | true | Change to `false` to disable support for data sources in the plugin.
82-
`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`.
83-
`plugins.calcite.enabled` | true | Enables the Apache Calcite query engine, including advanced SQL and PPL capabilities such as subsearches, joins, and lookup operations.
84-
`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.
85-
`plugins.ppl.syntax.legacy.preferred` | true | Controls certain PPL syntax behaviors, including default argument values. When `false`, uses newer syntax standards.
86-
`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.
75+
`plugins.sql.enabled` | `true` | Change to `false` to disable the `SQL` support in the plugin.
76+
`plugins.ppl.enabled` | `true` | Change to `false` to disable the `PPL` support in the plugin.
77+
`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`.
78+
`plugins.sql.cursor.keep_alive` | `1m` | Configures the amount of time that the cursor context remains open. Because cursor contexts are resource intensive, we recommend a low value.
79+
`plugins.query.memory_limit` | `85%` | Configures the heap memory usage limit for the query engine's circuit breaker.
80+
`plugins.query.size_limit` | `10000` | Sets the maximum number of rows returned from a query execution.
81+
`plugins.query.datasources.enabled` | `true` | Change to `false` to disable support for data sources in the plugin.
82+
`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]]` is reduced to `1`. If `true`, then the array is preserved. Default is `true`.
83+
`plugins.query.buckets` | `10000` | Sets the number of aggregation buckets returned in a single response. Default is the `plugins.query.size_limit` value.
84+
`plugins.calcite.enabled` | `true` | Enables the Apache Calcite query engine, including advanced SQL and PPL capabilities such as subsearch, `join`, and `lookup` operations.
85+
`plugins.calcite.pushdown.enabled` | `true` | Change to `false` to disable the operator push-down optimization. We recommend using the default value.
86+
`plugins.calcite.fallback.allowed` | `false` | Change to `true` to allow fallback to the v2 engine.
87+
`plugins.calcite.pushdown.rowcount.estimation.factor` | `0.9` | A factor used to multiply the row count of a table scan to estimate the resulting row count. We recommend using the default value.
88+
`plugins.calcite.all_join_types.allowed` | `false` | Enables performance-sensitive join types, such as `RIGHT`, `FULL`, and `CROSS` joins. Change to `true` to allow these join operations.
89+
`plugins.ppl.syntax.legacy.preferred` | `true` | Controls PPL syntax behaviors, including default argument values. When `false`, uses newer syntax standards. For more information, see the [legacy syntax documentation](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/admin/settings.rst#plugins-ppl-syntax-legacy-preferred).
90+
`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.
91+
`plugins.ppl.rex.max_match.limit` | `10` | Sets the maximum number of matches extracted by the `rex` command.
92+
`plugins.ppl.subsearch.maxout` | `10000` | Sets the maximum number of rows to return from a subsearch.
93+
`plugins.ppl.join.subsearch_maxout` | `50000` | Sets the maximum number of rows to return from a subsearch used in a join operation.
94+
`plugins.ppl.pattern.method` | `simple_pattern` | Sets the method for the `patterns` command. Valid values are `simple_pattern` and `brain`. For more information, see [`patterns` syntax](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/patterns.rst#syntax).
95+
`plugins.ppl.pattern.mode` | `label` | Sets the mode for the `patterns` command. Valid values are `label` and `aggregation`. For more information, see [`patterns` syntax](https://github.com/opensearch-project/sql/blob/main/docs/user/ppl/cmd/patterns.rst#syntax).
96+
`plugins.ppl.pattern.max.sample.count` | `10` | Sets the maximum number of sample logs returned per pattern in aggregation mode.
97+
`plugins.ppl.pattern.buffer.limit` | `100000` | Sets the size of the internal temporary buffer used by the `brain` algorithm.
98+
`plugins.ppl.pattern.show.numbered.token` | `false` | Change to `true` to enable the numbered token output format.
99+
`plugins.ppl.query.timeout` | `5m` | Configures the maximum amount of time that a PPL query can run. If a query exceeds this limit, execution stops and returns a timeout error.
87100

88101
## Spark connector settings
89102

0 commit comments

Comments
 (0)