Currently when defining incremental load configuration, the value type of the cursor field is expected to be the same as the value of the parameter passed to the API.
For example, if the API expects a numeric timestamp value (e.g. 1718991859) for the date_from parameter, the cursor field should also be a numeric timestamp value.
Problem
Some APIs expect a date string (e.g. "2022-01-01") for the querystring parameter, but the response includes a numeric timestamp value.
Proposal
Allow users to specify a transformation function that will be applied to the cursor field value before it is used to query the API.
Background
Currently when defining incremental load configuration, the value type of the cursor field is expected to be the same as the value of the parameter passed to the API.
For example, if the API expects a numeric timestamp value (e.g. 1718991859) for the
date_from
parameter, the cursor field should also be a numeric timestamp value.Problem
Some APIs expect a date string (e.g. "2022-01-01") for the querystring parameter, but the response includes a numeric timestamp value.
Proposal
Allow users to specify a transformation function that will be applied to the cursor field value before it is used to query the API.
Or using a Python function:
Relevant Slack discussions:
Implementation