big-armor / datapm

Other
18 stars 5 forks source link

enhance timeplus sink to support object/json complex data type from database #485

Closed jovezhong closed 2 years ago

jovezhong commented 2 years ago

I am glad the latest datapm CLI support object type. This is a fairly easy enhancement in the Timeplus sink. If the column is in object type, we will create the column as json type and send the the raw json in the HTTP request.

For example, the postgres table is aircraft_data, the model column is a JSONB

image

A stream will be created in Timeplus, with json type (internally we call this as object('json'), which is subject to change)

image

Then you can query them with columnName.jsonPath, such as model.en

image