Answer the question
In order to leave comments, you need to log in
How to aggregate data from JSONB?
There are jsonbs (see screenshot). The keys are not known in advance. The key values are jsonb, in which the data of interest is stored in status
. It can take the values FINISHED
, PENDING
, FAILURE
.
Single row data example:
{
"79361fa7-4d71-49f0-a035-a0355e4fd280_1": {
"retry": 10,
"status": "FINISHED",
"interval": "2017-10-01 - 2017-11-01"
},
"79361fa7-4d71-49f0-a035-a0355e4fd280_2": {
"retry": 10,
"status": "PENDING",
"interval": "2017-10-01 - 2017-11-01"
},
"79361fa7-4d71-49f0-a035-a0355e4fd280_3": {
"retry": 10,
"status": "FINISHED",
"interval": "2017-10-01 - 2017-11-01"
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question