Hi, question about variables. i have a table with a list of tables and parameters , for example limit and hours_back . so one table can be
SELECT *
FROM {stream_table}
WHERE updated_at >
COALESCE({incremental_value}, '1900-01-01 00:00:00') - INTERVAL {hours_back} HOUR
and updated_at < '{env._sling_loaded_at}'
limit {limit}
i am working on incremental for 10 tables, i put this on the default of the replication. with a pre hook that bring the variables from the params_table on the target how can i load the variables and use them in the replication ? i managed to do it In a preceding pipeline but then I lose the flexibility of running only one stream (and still get its variables)
If it is not possible , is there a way to load the table to environment variables before the replication and then use them in the replication ? Some other option ?