Skip to content

/AWS1/CL_LKFQUERYSESSCONTEXT

A structure used as a protocol between query engines and Lake Formation or Glue. Contains both a Lake Formation generated authorization identifier and information from the request's authorization context.

For more information about how to utilize QuerySessionContext, see Lake Formation workflow for application integration API operations in the developer guide.

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_queryid TYPE /AWS1/LKFHASHSTRING /AWS1/LKFHASHSTRING

A unique identifier generated by the query engine for the query.

iv_querystarttime TYPE /AWS1/LKFTIMESTAMP /AWS1/LKFTIMESTAMP

A timestamp provided by the query engine for when the query started.

iv_clusterid TYPE /AWS1/LKFNULLABLESTRING /AWS1/LKFNULLABLESTRING

An identifier string for the consumer cluster.

iv_queryauthorizationid TYPE /AWS1/LKFHASHSTRING /AWS1/LKFHASHSTRING

A cryptographically generated query identifier generated by Glue or Lake Formation.

it_additionalcontext TYPE /AWS1/CL_LKFADDLCONTEXTMAP_W=>TT_ADDITIONALCONTEXTMAP TT_ADDITIONALCONTEXTMAP

An opaque string-string map passed by the query engine.


Queryable Attributes

QueryId

A unique identifier generated by the query engine for the query.

Accessible with the following methods

Method Description
GET_QUERYID() Getter for QUERYID, with configurable default
ASK_QUERYID() Getter for QUERYID w/ exceptions if field has no value
HAS_QUERYID() Determine if QUERYID has a value

QueryStartTime

A timestamp provided by the query engine for when the query started.

Accessible with the following methods

Method Description
GET_QUERYSTARTTIME() Getter for QUERYSTARTTIME, with configurable default
ASK_QUERYSTARTTIME() Getter for QUERYSTARTTIME w/ exceptions if field has no valu
HAS_QUERYSTARTTIME() Determine if QUERYSTARTTIME has a value

ClusterId

An identifier string for the consumer cluster.

Accessible with the following methods

Method Description
GET_CLUSTERID() Getter for CLUSTERID, with configurable default
ASK_CLUSTERID() Getter for CLUSTERID w/ exceptions if field has no value
HAS_CLUSTERID() Determine if CLUSTERID has a value

QueryAuthorizationId

A cryptographically generated query identifier generated by Glue or Lake Formation.

Accessible with the following methods

Method Description
GET_QUERYAUTHORIZATIONID() Getter for QUERYAUTHORIZATIONID, with configurable default
ASK_QUERYAUTHORIZATIONID() Getter for QUERYAUTHORIZATIONID w/ exceptions if field has n
HAS_QUERYAUTHORIZATIONID() Determine if QUERYAUTHORIZATIONID has a value

AdditionalContext

An opaque string-string map passed by the query engine.

Accessible with the following methods

Method Description
GET_ADDITIONALCONTEXT() Getter for ADDITIONALCONTEXT, with configurable default
ASK_ADDITIONALCONTEXT() Getter for ADDITIONALCONTEXT w/ exceptions if field has no v
HAS_ADDITIONALCONTEXT() Determine if ADDITIONALCONTEXT has a value