Skip to main content

kx_changesets

Creates, updates, deletes, gets or lists a kx_changesets resource.

Overview

Namekx_changesets
TypeResource
Idaws.finspace.kx_changesets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_from_timestampstring (date-time)Beginning time from which the changeset is active. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
change_requestsarrayA list of change request objects that are run in order.
changeset_idstringA unique identifier for the changeset. (pattern: <code>^[a-zA-Z0-9]+$</code>)
created_timestampstring (date-time)The timestamp at which the changeset was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
database_namestringThe name of the kdb database. (pattern: <code>^[a-zA-Z0-9][a-zA-Z0-9-_]*[a-zA-Z0-9]$</code>)
environment_idstringA unique identifier for the kdb environment. (pattern: <code>.\S.</code>)
error_infoobjectProvides details in the event of a failed flow, including the error type and the related error message.
last_modified_timestampstring (date-time)The timestamp at which the changeset was updated in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
statusstringStatus of the changeset creation process. Pending – Changeset creation is pending. Processing – Changeset creation is running. Failed – Changeset creation has failed. Complete – Changeset creation has succeeded. (PENDING, PROCESSING, FAILED, COMPLETED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_kx_changesetselectenvironment_id, database_name, changeset_id, regionReturns information about a kdb changeset.
list_kx_changesetsselectenvironment_id, database_name, regionnextToken, maxResultsReturns a list of all the changesets for a database.
create_kx_changesetinsertenvironment_id, database_name, region, changeRequests, clientTokenCreates a changeset for a kdb database. A changeset allows you to add and delete existing files by using an ordered list of change requests.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
changeset_idstringA unique identifier of the changeset for which you want to retrieve data.
database_namestringThe name of the kdb database.
environment_idstringA unique identifier of the kdb environment.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to return in this request.
nextTokenstringA token that indicates where a results page should begin.

SELECT examples

Returns information about a kdb changeset.

SELECT
active_from_timestamp,
change_requests,
changeset_id,
created_timestamp,
database_name,
environment_id,
error_info,
last_modified_timestamp,
status
FROM aws.finspace.kx_changesets
WHERE environment_id = '{{ environment_id }}' -- required
AND database_name = '{{ database_name }}' -- required
AND changeset_id = '{{ changeset_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a changeset for a kdb database. A changeset allows you to add and delete existing files by using an ordered list of change requests.

INSERT INTO aws.finspace.kx_changesets (
changeRequests,
clientToken,
environment_id,
database_name,
region
)
SELECT
'{{ changeRequests }}' /* required */,
'{{ clientToken }}' /* required */,
'{{ environment_id }}',
'{{ database_name }}',
'{{ region }}'
RETURNING
change_requests,
changeset_id,
created_timestamp,
database_name,
environment_id,
error_info,
last_modified_timestamp,
status
;