Skip to content

Commit ee5e40a

Browse files
committed
Remove doctest
Signed-off-by: Chen Dai <daichen@amazon.com>
1 parent 99abe60 commit ee5e40a

File tree

1 file changed

+0
-56
lines changed

1 file changed

+0
-56
lines changed

docs/user/admin/settings.rst

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -300,62 +300,6 @@ Result set::
300300

301301
Note: the legacy settings of ``opendistro.ppl.query.memory_limit`` is deprecated, it will fallback to the new settings if you request an update with the legacy name.
302302

303-
304-
plugins.sql.delete.enabled
305-
======================
306-
307-
Description
308-
-----------
309-
310-
By default, DELETE clause disabled. You can enable DELETE clause by this setting.
311-
312-
1. The default value is false.
313-
2. This setting is node scope.
314-
3. This setting can be updated dynamically.
315-
316-
317-
Example 1
318-
---------
319-
320-
You can update the setting with a new value like this.
321-
322-
SQL query::
323-
324-
sh$ curl -sS -H 'Content-Type: application/json' -X PUT localhost:9200/_plugins/_query/settings \
325-
... -d '{"transient":{"plugins.sql.delete.enabled":"false"}}'
326-
{
327-
"acknowledged": true,
328-
"persistent": {},
329-
"transient": {
330-
"plugins": {
331-
"sql": {
332-
"delete": {
333-
"enabled": "false"
334-
}
335-
}
336-
}
337-
}
338-
}
339-
340-
Example 2
341-
---------
342-
343-
Query result after the setting updated is like:
344-
345-
SQL query::
346-
347-
sh$ curl -sS -H 'Content-Type: application/json' -X POST localhost:9200/_plugins/_sql \
348-
... -d '{"query" : "DELETE * FROM accounts"}'
349-
{
350-
"error": {
351-
"reason": "Invalid SQL query",
352-
"details": "DELETE clause is disabled by default and will be deprecated. Using the plugins.sql.delete.enabled setting to enable it",
353-
"type": "SQLFeatureDisabledException"
354-
},
355-
"status": 400
356-
}
357-
358-
359303
plugins.query.executionengine.spark.session.limit
360304
==================================================
361305

0 commit comments

Comments
 (0)