shaping json data in the sink

自作多情 提交于 2019-12-25 01:38:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!