vizkidd commented on issue #38843:
URL: https://github.com/apache/arrow/issues/38843#issuecomment-1824217244
Thank you. How can I make a List of Structs?
My Current schema looks like this :
```cpp
seq_info_type = arrow::struct_({
arrow::field("num_alignments", arrow::int8()),
arrow::field("seqids", arrow::struct_({arrow::field("qseqid",
arrow::utf8()),
arrow::field("sseqid",
arrow::utf8())})),
arrow::field("seqs", arrow::struct_({arrow::field("qseq",
arrow::large_utf8()),
arrow::field("sseq",
arrow::large_utf8())})),
arrow::field("strands", arrow::utf8()),
arrow::field("lengths", arrow::struct_({arrow::field("qlen",
arrow::int8()),
arrow::field("slen",
arrow::int8())})),
});
hsp_type = arrow::struct_({arrow::field("pident", arrow::float64()),
/*fill with data*/
arrow::field("comp_adj_method",
arrow::float64())});
alignment_scores_type = arrow::list({hsp_type});
blast_schema = arrow::schema({arrow::field("seq_info", seq_info_type),
arrow::field("hsps", hsp_type)});
```
I want to use `alignment_scores_type` in `blast_schema` instead of the
struct `hsp_type` so that I can store some meta-info in `seq_info_type` and
have a variable length List of Structs with the data. This was disallowed in
13.0.0 (yet to check in 14.0.1)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]