Skip to content

Commit 288bc31

Browse files
committed
Remove doctest
Signed-off-by: Chen Dai <daichen@amazon.com>
1 parent 44829d2 commit 288bc31

File tree

1 file changed

+0
-55
lines changed

1 file changed

+0
-55
lines changed

docs/user/admin/settings.rst

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -260,61 +260,6 @@ Result set::
260260
"transient": {}
261261
}
262262

263-
plugins.sql.delete.enabled
264-
======================
265-
266-
Description
267-
-----------
268-
269-
By default, DELETE clause disabled. You can enable DELETE clause by this setting.
270-
271-
1. The default value is false.
272-
2. This setting is node scope.
273-
3. This setting can be updated dynamically.
274-
275-
276-
Example 1
277-
---------
278-
279-
You can update the setting with a new value like this.
280-
281-
SQL query::
282-
283-
sh$ curl -sS -H 'Content-Type: application/json' -X PUT localhost:9200/_plugins/_query/settings \
284-
... -d '{"transient":{"plugins.sql.delete.enabled":"false"}}'
285-
{
286-
"acknowledged": true,
287-
"persistent": {},
288-
"transient": {
289-
"plugins": {
290-
"sql": {
291-
"delete": {
292-
"enabled": "false"
293-
}
294-
}
295-
}
296-
}
297-
}
298-
299-
Example 2
300-
---------
301-
302-
Query result after the setting updated is like:
303-
304-
SQL query::
305-
306-
sh$ curl -sS -H 'Content-Type: application/json' -X POST localhost:9200/_plugins/_sql \
307-
... -d '{"query" : "DELETE * FROM accounts"}'
308-
{
309-
"error": {
310-
"reason": "Invalid SQL query",
311-
"details": "DELETE clause is disabled by default and will be deprecated. Using the plugins.sql.delete.enabled setting to enable it",
312-
"type": "SQLFeatureDisabledException"
313-
},
314-
"status": 400
315-
}
316-
317-
318263
plugins.query.executionengine.spark.session.limit
319264
==================================================
320265

0 commit comments

Comments
 (0)