rigerta
02/03/2022, 1:02 PMJSON
column and Meltano unpacks it into multiple columns, not even loading the source column itself.
I tried getting it by only specifying that single column to load, ran meltano elt
and I cannot seem to be able to load that column into my schema.
I only get the unpacked version (meaning all the columns that derive from that, according to Meltano).
Example:
source: my_source_table
specification in meltano.yml:
select:
-source.specific_json_col
run command:
meltano elt tap-bla target-bla-bla
what I see when loaded:
my_source_table:
specific_json_col__derived_col_1
specifi_json_col__derived_col_2
..
I did not look at the source code yet, but is this how it is meant to work? 🤔
Thanks in advance 🙂edgar_ramirez_mondragon
02/03/2022, 3:37 PMproperties
from the schema of the field in the source. Like
"specific_json_col": {
"type": "object",
"properties": {
"derived_col_1": {...},
"derived_col_2": {...}
}
}
into
"specific_json_col": {
"type": "object",
"properties": {}
}
Depending on the target, it may have a setting option to disable flattening of json fieldsrigerta
02/03/2022, 3:40 PMedgar_ramirez_mondragon
02/03/2022, 3:43 PM