Skip to content

Commit

Permalink
Remove doctest
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Dai <[email protected]>
  • Loading branch information
dai-chen committed Feb 20, 2025
1 parent 44829d2 commit 288bc31
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions docs/user/admin/settings.rst
Original file line number Diff line number Diff line change
Expand Up @@ -260,61 +260,6 @@ Result set::
"transient": {}
}

plugins.sql.delete.enabled
======================

Description
-----------

By default, DELETE clause disabled. You can enable DELETE clause by this setting.

1. The default value is false.
2. This setting is node scope.
3. This setting can be updated dynamically.


Example 1
---------

You can update the setting with a new value like this.

SQL query::

sh$ curl -sS -H 'Content-Type: application/json' -X PUT localhost:9200/_plugins/_query/settings \
... -d '{"transient":{"plugins.sql.delete.enabled":"false"}}'
{
"acknowledged": true,
"persistent": {},
"transient": {
"plugins": {
"sql": {
"delete": {
"enabled": "false"
}
}
}
}
}

Example 2
---------

Query result after the setting updated is like:

SQL query::

sh$ curl -sS -H 'Content-Type: application/json' -X POST localhost:9200/_plugins/_sql \
... -d '{"query" : "DELETE * FROM accounts"}'
{
"error": {
"reason": "Invalid SQL query",
"details": "DELETE clause is disabled by default and will be deprecated. Using the plugins.sql.delete.enabled setting to enable it",
"type": "SQLFeatureDisabledException"
},
"status": 400
}


plugins.query.executionengine.spark.session.limit
==================================================

Expand Down

0 comments on commit 288bc31

Please sign in to comment.