Andy Carter
12/12/2024, 3:37 PMrun_id available to me, so I think Tap.discover_streams is too early. But it's not correct to do that at the stream level (as part of Stream.get_records ) because it only needs to be carried out once per tap run. Tap.sync_all would be another option if it weren't a @final method.
Is there anywhere I can jump in, a setup ish method in Tap? Or should I implement a singleton for all my streams to make use of in get_records?visch
12/12/2024, 3:50 PMdef __init__(
self,
tap: Tap,
name: str | None = None,
schema: dict[str, t.Any] | Schema | None = None,
path: str | None = None,
) -> None:
self.setup()
super().__init__(tap, name, schema, path)visch
12/12/2024, 3:51 PM__init__ ) is used forAndy Carter
12/12/2024, 3:52 PMvisch
12/12/2024, 3:52 PMvisch
12/12/2024, 3:53 PMAndy Carter
12/12/2024, 4:21 PMglobal my old friend :)