| 22 | #include <arrow-glib/arrow-glib.h> |
| 23 | |
| 24 | static GArrowSchema * |
| 25 | build_schema(void) |
| 26 | { |
| 27 | GList *fields = NULL; |
| 28 | GArrowBooleanDataType *boolean_data_type = garrow_boolean_data_type_new(); |
| 29 | fields = |
| 30 | g_list_append(fields, |
| 31 | garrow_field_new("boolean", GARROW_DATA_TYPE(boolean_data_type))); |
| 32 | GArrowInt32DataType *int32_data_type = garrow_int32_data_type_new(); |
| 33 | fields = |
| 34 | g_list_append(fields, garrow_field_new("int32", GARROW_DATA_TYPE(int32_data_type))); |
| 35 | GArrowSchema *schema = garrow_schema_new(fields); |
| 36 | g_list_free_full(fields, g_object_unref); |
| 37 | |
| 38 | return schema; |
| 39 | } |
| 40 | |
| 41 | static GArrowRecordBatch * |
| 42 | build_record_batch(void) |