Skip to content

Commit

Permalink
fix linter, descriptions
Browse files Browse the repository at this point in the history
Signed-off-by: Tokesh <[email protected]>
  • Loading branch information
Tokesh committed Jul 24, 2024
1 parent a14a618 commit f3003df
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .cspell
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,6 @@ urldecode
vectory
whoamiprotected
wordnet
datarows
syserr
cuserr
6 changes: 3 additions & 3 deletions spec/namespaces/sql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ paths:
operationId: sql.query.0
x-operation-group: sql.query
x-version-added: '1.0'
description: Sends an SQL/PPL query to the SQL plugin.
description: Send a SQL/PPL query to the SQL plugin.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/
parameters:
Expand Down Expand Up @@ -41,7 +41,7 @@ paths:
operationId: sql.close.0
x-operation-group: sql.close
x-version-added: '1.0'
description: To explicitly clear the cursor context.
description: Clears the cursor context.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/sql-ppl-api/
parameters:
Expand All @@ -57,7 +57,7 @@ paths:
operationId: sql.get_stats.0
x-operation-group: sql.get_stats
x-version-added: '1.0'
description: By a stats endpoint, you are able to collect metrics for the plugin within the interval.
description: Collect metrics for the plugin within the interval.
externalDocs:
url: https://opensearch.org/docs/latest/search-plugins/sql/monitoring/
parameters:
Expand Down
2 changes: 1 addition & 1 deletion tests/_core/bulk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ chapters:
- {update: {_index: books, _id: book_1392214}}
- {doc: {pages: 376}, _source: true}
- {update: {_index: books, _id: book_1392214}}
- {script: {source: 'ctx._source.pages = 376;'}}
- {script: {source: ctx._source.pages = 376;}}
- {update: {_index: books, _id: does_not_exist}}
- {script: {source: 'ctx.op = "none";'}, scripted_upsert: true, upsert: {pages: 375}}
- {delete: {_index: books, _id: book_1392214}}
Expand Down
4 changes: 2 additions & 2 deletions tests/sql/close.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ chapters:
request_body:
payload:
fetch_size: 1
query: "SELECT * FROM books"
query: 'SELECT * FROM books'
response:
status: 200
output:
cursor: 'payload.cursor'
cursor: payload.cursor
- synopsis: Close cursor
path: /_plugins/_sql/close
method: POST
Expand Down
2 changes: 1 addition & 1 deletion tests/sql/query.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ chapters:
method: POST
request_body:
payload:
query: "SELECT * FROM books"
query: 'SELECT * FROM books'
response:
status: 200

0 comments on commit f3003df

Please sign in to comment.