hawkar_mahmod
04/06/2023, 8:48 AMDenis I.
04/06/2023, 1:30 PMhawkar_mahmod
04/11/2023, 9:58 AMget_records
is made?Denis I.
04/11/2023, 11:05 AMschema
property is called during init
of the Stream
(https://github.com/meltano/sdk/blob/main/singer_sdk/streams/core.py#L200)
That’s why tap-csv
calls get_rows()
in schema
just to get the first row and return schema based on the file’s header (https://github.com/MeltanoLabs/tap-csv/blob/main/tap_csv/client.py#L132)
There is multiple other approaches: https://github.com/search?o=desc&q=tap+singer+sdk&s=updated&type=Repositories