How to map binary data to variable in macro

I have use case where I have pass last query id to another script but when I tried to use binary data, DBT through an error. Please let me know if you face similar issue

@shivaramp I can understand the use case of wanting to pass one query ID to another, but I don’t see how that leads to having trouble with binary data. Can you share the code you’re using and the error messages dbt is returning?

Please also explain the actual problem you’re trying to solve by passing one query ID to another, as there may be a more dbt-standard way to do this.