hg
12/28/2022, 3:37 PMsinks.py
?
so for each record process_record
is called and only after processing the last record I'd like to call another function do_cleanup()
that does some workdt_mirizzi
12/28/2022, 6:01 PMBulkSink
. From my understanding as defined in the base sink class. Sinks are partitioned by stream name, meaning you would have new objects being instantiated/cleaned once per stream.
It looks like there is a variable _`records_to_drain`_ In the base class as well, but I dont have any exp using it in my target.dt_mirizzi
12/28/2022, 6:12 PMalexander_butler
12/28/2022, 6:33 PMhg
01/04/2023, 4:48 PMdef clean_up
in the sink class and it should be called at the end of each stream? I've read the source code and your PR, but the function does not get calledhg
01/04/2023, 4:48 PMhg
01/04/2023, 4:51 PMhg
01/04/2023, 5:27 PM