Hey folks, is there an accepted way to sync a sing...
# singer-tap-development
d
Hey folks, is there an accepted way to sync a single record using the meltano SDK? There are a lot of tests I want to write that would benefit from quickly getting one record from each stream and then performing some validation on that record. Would appreciate any suggestions or existing tap examples 馃檪
a
Can you try adding the
--test
flag at the command line?
That should sync 1 record per stream, I think. I'll have to check...
Looks like we sometimes send 0 records using that option, if the stream is not a parent stream. I've created a one-liner MR to standardize on 1 record per stream. cc @edgar_ramirez_mondragon Draft: Resolve "Always sync 1 record per stream when using `--test` or `--test=all`" (!241) 路 Merge requests 路 Meltano / Meltano SDK for Singer Taps and Targets 路 GitLab
d
Looks like i'm getting 0 records supplying the test flag the only thing that comes to stdout is logging and schema mapping for each stream. If I don't implement parent child streams explicitly does that mean my stream objects are child by default?
a
Since you don't have parent-child relationships, those are just "regular" streams, for lack of a better name. And the above MR is merged now to main branch, and will be released tomorrow. After that release tomorrow (or if you want to grab it now from
main
), you should see one row per stream regardless of whether the stream is a parent or not.
d
What version of the sdk do I need to grab this change? I'm still just seeing the schema written to stdout in the test mode and im running version
0.4.0
Disregard validated that this is working as expected in version
0.4.1
thanks again for the quick assist!
a
Fantastic. Thanks, @daniel_luftspring for confirming. 馃憤