问题
How do union these two streams into a single JSON output using data factory/data flow?
I have two streams of data.
Stream 1 (csv):
123,alex,03/18/1985
Stream 2 (csv):
123,blue,new
123,purple,old
Desired output:
{
"Stream1": {
"id": 123,
"name": "alex",
"dob": "03/18/1985"
},
"Stream2": [
{ "id": 123, "color": "blue", "status": "new" },
{ "id": 123, "color": "purple", "status": "old" }
]
}
How do union these two streams into a single JSON output?
来源:https://stackoverflow.com/questions/59162125/shaping-json-data-in-the-sink