Open calorie opened 3 years ago
@dmikurube Could you take a look when you get a chance?
For future testing.
a,b,c,d
1,"\"test\"","{ \"a\":\"abc\" }","[1,2,3]",true,null
1,"\"test\"","{ \"a\":\"abc\" }","[1,2,3]",true,null
1,"\"test\"","{ \"a\":\"abc\" }","[1,2,3]",true,null
1,"\"test\"","{ \"a\":\"abc\" }","[1,2,3]",true,null
in:
type: file
path_prefix: test.csv
parser:
charset: UTF-8
newline: LF
type: csv
delimiter: ','
quote: '"'
escape: \
trim_if_not_quoted: false
skip_header_lines: 1
allow_extra_columns: false
allow_optional_columns: false
columns:
- {name: a, type: json}
- {name: b, type: json}
- {name: c, type: json}
- {name: d, type: json}
- {name: e, type: json}
- {name: f, type: json}
out: {type: stdout}
Environment
Reproduction
https://github.com/calorie/embulk-repro
json_to_es.yml
repro.json
Expected
I want to use JSON array in JSON data type. It's necessary to use
parseJsonArray
here:https://github.com/embulk/embulk-base-restclient/blob/6af1941d999d2f06b0de118e2b4a4e815d6d805c/src/main/java/org/embulk/base/restclient/jackson/scope/JacksonAllInObjectScope.java#L103-L113
Ref: Twitter (Japanese text)
@hiroyuki-sato Thank you for supporting me.