Issue with Jinja Macro in Custom Connector

Summary

The user is experiencing an issue with the Jinja macro day_delta not being interpreted correctly in a custom connector on Airbyte Cloud, resulting in the macro being sent as a string instead of a computed date in the query parameters.


Question

Hi everyone,
On our custom connector built in Airbyte Cloud, we would like to use the Jinja macro day_delta with the Parametrized Requests, so that there is a request launched with a query param set as day_delta(-3), day_delta(-4) and day_delta(-5).
The problem is that the macro is not interpreted, and the query param used in the end is the string “day_delta(-3)” instead of the computed date.
We tried using the “Inject value into outgoing HTTP Request” or using the stream_partition["selected_date"] variable, but the result is the same.
Does anyone have an idea on how to solve this ? Thanks !



This topic has been created from a Slack thread to give it more visibility.
It will be on Read-Only mode here. Click here if you want
to access the original thread.

Join the conversation on Slack

['jinja-macro', 'day-delta', 'custom-connector', 'airbyte-cloud', 'http-request']