Skip to content

[DOCS] Descriptions for SQL APIs #2264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 26 additions & 13 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions specification/sql/clear_cursor/ClearSqlCursorRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ import { RequestBase } from '@_types/Base'
*/
export interface Request extends RequestBase {
body: {
/**
* Cursor to clear.
*/
cursor: string
}
}
3 changes: 3 additions & 0 deletions specification/sql/delete_async/SqlDeleteAsyncRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import { Id } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts: {
/**
* Identifier for the search.
*/
id: Id
}
}
3 changes: 3 additions & 0 deletions specification/sql/get_async/SqlGetAsyncRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { Id } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts: {
/**
* Identifier for the search.
*/
id: Id
}
query_parameters: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ import { Id } from '@_types/common'
*/
export interface Request extends RequestBase {
path_parts: {
/**
* Identifier for the search.
*/
id: Id
}
}
13 changes: 10 additions & 3 deletions specification/sql/query/QuerySqlRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import { Duration, TimeZone } from '@_types/Time'
export interface Request extends RequestBase {
query_parameters: {
/**
* Format for the response.
* @doc_id sql-rest-format
*/
format?: string
Expand All @@ -46,20 +47,25 @@ export interface Request extends RequestBase {
* @server_default false
*/
columnar?: boolean
/**
* Cursor used to retrieve a set of paginated results.
* If you specify a cursor, the API only uses the `columnar` and `time_zone` request body parameters.
* It ignores other request body parameters.
*/
cursor?: string
/**
* The maximum number of rows (or entries) to return in one response
* @server_default 1000
*/
fetch_size?: integer
/**
* Optional Elasticsearch query DSL for additional filtering.
* Elasticsearch query DSL for additional filtering.
* @doc_id sql-rest-filtering
* @server_default none
*/
filter?: QueryContainer
/**
* SQL query to execute
* SQL query to run.
*/
query?: string
/**
Expand All @@ -73,8 +79,9 @@ export interface Request extends RequestBase {
*/
page_timeout?: Duration
/**
* Time-zone in ISO 8601 used for executing the query on the server. More information available here.
* ISO-8601 time zone ID for the search.
* @doc_url https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html
* @server_default Z
*/
time_zone?: TimeZone
/**
Expand Down
17 changes: 17 additions & 0 deletions specification/sql/translate/TranslateSqlRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,26 @@ import { TimeZone } from '@_types/Time'
*/
export interface Request extends RequestBase {
body: {
/**
* The maximum number of rows (or entries) to return in one response.
* @server_default 1000
*/
fetch_size?: integer
/**
* Elasticsearch query DSL for additional filtering.
* @doc_id sql-rest-filtering
* @server_default none
*/
filter?: QueryContainer
/**
* SQL query to run.
*/
query: string
/**
* ISO-8601 time zone ID for the search.
* @doc_url https://docs.oracle.com/javase/8/docs/api/java/time/ZoneId.html
* @server_default Z
*/
time_zone?: TimeZone
}
}