| 55 | } |
| 56 | |
| 57 | ArrowSchemaWrapper makeCsrNodeSchema() { |
| 58 | ArrowSchemaWrapper schema; |
| 59 | createStructSchema(&schema, 5); |
| 60 | createSchema<int64_t>(schema.children[0], "id"); |
| 61 | createSchema<std::string>(schema.children[1], "name"); |
| 62 | createSchema<int64_t>(schema.children[2], "score"); |
| 63 | createDateSchema(schema.children[3], "reg_date"); |
| 64 | createListInt64Schema(schema.children[4], "badges"); |
| 65 | return schema; |
| 66 | } |
| 67 | |
| 68 | ArrowArrayWrapper makeCsrNodeBatch(const std::vector<CsrNodeRow>& rows) { |
| 69 | std::vector<int64_t> ids; |
no test coverage detected