visch
06/20/2023, 8:33 PM["object", "array", "string", "number", "boolean"]
, what should the target do? And the answer really is "it depends" and it depends on the target. Some targets should fail as they can't pick something suitable, some should cast the data as a jsonb
object. To get target developers to think about this kind of thing properly, I think a single test that fails by default (raises a NotImplemented error or something in the cookiecutter) would drive folks to think about this the way we'd expect, the target dev can then decide to just skip it for now, or pick something that makes sense for them.
The way to handle this so that we can test all targets (Instead of in the SDK), is a suite of tests that is "just" jsonl
data (ie .singer
) files that you run against all the targets that make sense targets can run against all "types" of data we'd expect to work with. The suite of tests in the SDK may make sense for this as well I'm not sure.pat_nadolny
06/20/2023, 9:22 PMHenning Holgersen
06/21/2023, 7:36 AM["object", "array", "string", "number", "boolean"]
example or does it throw an error? Does a target cast json to string? I'm sure we could create a number of tests that were informative for users.