daniel
12/05/2023, 9:59 PMtarget-redshift
from Pipelinewise (link)? I seem to be encountering a bug and not sure if others have also run into it. In the function persist_lines
we set state = None
(link), but then pass it without modification to flush_streams
. flush_streams
then thinks it's a dictionary and calls get on it, which is an error.
I have been using this target for a while and somehow only just now hit this error. I suppose we could set it to an empty dictionary instead but I'm not sure if this is the right fix.edgar_ramirez_mondragon
12/05/2023, 11:14 PMthis target fails if the tap does not issue a state.The issue description suggests this happens when the tap doesn't emit a state, so I'm curious which tap caused your problem.
edgar_ramirez_mondragon
12/06/2023, 4:25 AMflush_all_streams
setting is set to true: https://github.com/transferwise/pipelinewise-target-redshift/blob/80796b6c6e4647a85ddc9492e343547a027258e4/target_redshift/__init__.py#L330, so maybe that's a workaround?