New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RedshiftTarget update_id too long for marker table #1003
Comments
Just ran into this issue as well. Thanks @kianho for figuring out the root cause. |
Same as above, thanks @kianho. |
Yup same. Thanks @kianho |
I have run into this error before and just overwrote the update_id (as you did). If this is just an issue where we will handle the edge cases ourselves, can we close this? |
Very timely comment @joeshaw. Appreciate it. I was just trying to figure out why my hacked update_id was all of a sudden causing "psycopg2.ProgrammingError: can't adapt type 'method'" and your message explained it. Just need to go through my ETL now and undo all my subclassing of S3CopyToTable. |
@drewfustin the "method" thing bit me as well. It turns out that It is very frustrating the number of breaking changes that are generally introduced in each Luigi version, and in 2.1.0 specifically. The release notes for 2.1.0 make no mention of them, so unless you follow all the Luigi pull requests between releases, you're just on your own when your own code breaks inexplicably. |
Appears to have been fixed. |
The following exception was raised when executing an
S3CopyToTable
task:which was occurring when the value inserted into the marker table
update_id
column was longer than 256 characters.
The offending code:
https://github.com/spotify/luigi/blob/master/luigi/task.py#L277
which is called from here:
https://github.com/spotify/luigi/blob/master/luigi/contrib/rdbms.py#L98-L102
Since the default
update_id
(by default, thetask_id
) is set to a stringcontaining the task class name and its parameters, in my case it was:
which was considerably longer than 256 chars, due to the long AWS
endpoint, keys, and login details.
(edit: the proposed correction was wrong, removed it to avoid further confusion, see #1463 for the correct solution)
The text was updated successfully, but these errors were encountered: