You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on-run-end failed, error:
value too long for type character varying(65535)
After digging a bit, I found that the culprit is one of our unit-test for some macros, where we generate the test code using jinja to assert several conditions.
The compiled code ends up in a really long file. I found that your run-end hook calls several macros, but I got a bit lost in there. I guess that one of these macros is trying to upload the compiled code into a VARCHAR or TEXT variable (in Redshift) causing it to overflow (since the max size for a VARCHAR in Redshift is 65535).
I'm just posting the issue, so I don't want to lead to any solution before is checked that it's not just a singular thing, but an easy solution would be to truncate every string saved to the max size or the TEXT variable based on the adaptor.
The text was updated successfully, but these errors were encountered:
Hi @manuel-rodriguez-sonarsource !
Thanks a lot for opening this issue, and very sorry we are only just responding to it.
This is actually a bit surprising since we do truncate this value here, where get_column_size returns exactly 65535 for Redshift.
In any case, since it's been a while I'll go ahead and close this issue but if still relevant please feel free to open a new issue in the main Elementary repo (we are trying to concentrate issue management there).
Hi all! 馃憢
While running
dbt test
we got an error saying:After digging a bit, I found that the culprit is one of our unit-test for some macros, where we generate the test code using jinja to assert several conditions.
The compiled code ends up in a really long file. I found that your run-end hook calls several macros, but I got a bit lost in there. I guess that one of these macros is trying to upload the compiled code into a VARCHAR or TEXT variable (in Redshift) causing it to overflow (since the max size for a VARCHAR in Redshift is
65535
).Some more details about my env:
I'm running on Redshift using dbt core.
I'm just posting the issue, so I don't want to lead to any solution before is checked that it's not just a singular thing, but an easy solution would be to truncate every string saved to the max size or the TEXT variable based on the adaptor.
The text was updated successfully, but these errors were encountered: