housepower / clickhouse_sinker

Easily load data from kafka to ClickHouse
https://housepower.github.io/clickhouse_sinker
Apache License 2.0
519 stars 117 forks source link

嵌套JSON问题 #5

Closed telltime closed 5 years ago

telltime commented 5 years ago

kafka生产的嵌套JSON,像这样的,如果要根据type的内容,把data的数据写进ck,要怎么做啊。

{ "database": "test", "table": "dim_table1", "type": "insert", "ts": 1543912762, "xid": 2209, "commit": true, "data": { "id": 5815, "name": "jay" } }

sundy-li commented 5 years ago

这个可以自己实现 自定义Parser

MLikeWater commented 5 years ago

@telltime Have you implemented a nested json parser yet?

alexrkopp commented 5 years ago

I would also be interested in a nested json parser

sundy-li commented 5 years ago

@telltime #21 这里后面有个示例