Skip to content

Deem Datalake Input

The Deem Datalake Input transform reads data from Infor Ion Datalake using either the queryAll (Payload) or query (Compass) functions.

Deem Datalake Input

OptionDescription
Transform nameName of the transform
Client typeSet api:ionapi-datalake
HostSet file URL to ?.ionapi file. Supports variables
Api objectSelected object. Select an existing object from the Datalake catalog
Function nameSelect queryAll or query
Query stringQuery string to compass or filter for the payload api

Variables and some context objects for dynamic queries are supported. Use the ${VARIABLE_NAME} syntax to access JVM variables defined in kettle.properties.

The “Query string” field should only include the filter when using the queryAll function (Payload).

Examples:

dl_document_date gt '$sessiontime.addHours(${DATALAKE_HOURS})'
dl_document_date gt '$sessiontime.addHours(-6)'
dl_document_date gt '$sessiontime.addDays(${DATALAKE_DAYS})'
dl_document_date gt $time.addDays(-2)
dl_document_date range [$time.addDays(-2), $time.addDays(1)]
dl_document_date range [2019-09-01T10:00:01.410Z, 2019-09-13T11:00:01.700Z]
select $fields from $object where timestamp>'$time.addHours(${DATALAKE_HOURS})'
VariableDescription
$fieldsGives a comma separated list of fields selected in the “Output” tab
$objectGives the name of the table (object) selected in the “Api Object” field
$sessiontimeTimestamp variable set to current time when the JVM starts
$timeTimestamp variable set to current time when the actual transformation starts

Examples:

$time
$time.addHours(-6)
$time.addDays(-1)
$time.addMinutes(-120)
$time.getYear()
$time.getMonth()
$time.getMonthNo()
$time.getWeek()
$time.getWeekNo()