I am creating a copy job with Azure Data Factory (v2) from our on-premise Oracle database to our Azure Data Lake. Ideally, this copy job is set up as a delta-load, where only the information from the last day is considered.
To do so, we want to filter the column "load_time", which is of the format datetime, with dynamic content functionality of Azure Data Factory.
The dummy query would be:
SELECT sales.* FROM schema.sales sales WHERE sales.load_time >= {everything from one hour ago}
When enriching this query with dynamic content, we have something like
SELECT sales.* FROM schema.sales sales WHERE sales.load_time >= addHours(utcnow(), -1, format='yyyy-MM-dd HH:mm:ss')
However, we continue to run into an error:
ORA-00904:"ADDHOURS": invalid identifier
Does anyone have any experience / insight in what is going wrong here?
Thanks
EDIT-1: We aim to use the expressions from the Dynamic Content in Azure Data Factory, such as "addHours" to set the datetime limit.
