You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If flattening a JSON object into a single-level structure is needed, add the `x-greptime-pipeline-params` header to the request and set `flatten_json_object` to `true`.
With this configuration, GreptimeDB will automatically flatten each field of the JSON object into separate columns. For example:
242
+
243
+
```JSON
244
+
{
245
+
"a": {
246
+
"b": {
247
+
"c": [1, 2, 3]
248
+
}
249
+
},
250
+
"d": [
251
+
"foo",
252
+
"bar"
253
+
],
254
+
"e": {
255
+
"f": [7, 8, 9],
256
+
"g": {
257
+
"h": 123,
258
+
"i": "hello",
259
+
"j": {
260
+
"k": true
261
+
}
262
+
}
263
+
}
264
+
}
265
+
```
266
+
267
+
Will be flattened to:
268
+
269
+
```json
270
+
{
271
+
"a.b.c": [1,2,3],
272
+
"d": ["foo","bar"],
273
+
"e.f": [7,8,9],
274
+
"e.g.h": 123,
275
+
"e.g.i": "hello",
276
+
"e.g.j.k": true
277
+
}
278
+
```
279
+
280
+
281
+
226
282
## Variable hints in the pipeline context
227
283
228
284
Starting from `v0.15`, the pipeline engine now recognizes certain variables, and can set corresponding table options based on the value of the variables.
0 commit comments