We are loading data in batch from BigQuery to BigTable. API's access the data via Cloud Functions in BigTable. The header data and the details are fetched in two different calls in the current architecture. However I wanted to store both header and details in one column family. So far, I didn't find any references or examples explaining how to store arrays in BigTable, so I guess it's not possible. Now what would be the best alternative design to be able to serve the API layer, for my case. A simplified example of the data, where call_replies is a STRUCT in BigQuery:
[
{
"call_id":"123",
"caller":"Jeff",
"call_creation_timestamp":"2020-01-01 19:20:35",
"call_replies":[
{
"email":"Bladiebla@gmail.com",
"message":"Bladiebla"
},
{
"email":"jaryjary@gmail.com",
"message":"Jaryjary"
}
]
},
{
"call_id":"456",
"caller":"John",
"call_creation_timestamp":"2020-01-01 20:20:35",
"call_replies":[
]
}
]
Thanks in advance experts for your help!