Hi. I've written a custom tap that outputs some arrays of objects. Here's a schema snippet.
th.Property(
"data_files",
th.ArrayType(
th.ObjectType(
th.Property("sequence", th.StringType),
th.Property("document_url", th.StringType, required=True),
)
)
)
The data is being loaded into a PostgreSQL database using
target-postgres. The arrays are being mapped as
ARRAY(JSONB)
, as noted in the README.
Note that while object types are mapped directly to jsonb, array types are mapped to a jsonb array.
How do I configure the loader to map to a JSONB
instead of a ARRAY(JSONB)
?