| 88 | |
| 89 | namespace { |
| 90 | gboolean |
| 91 | garrow_field_refs_add(std::vector<arrow::FieldRef> &arrow_field_refs, |
| 92 | const gchar *string, |
| 93 | GError **error, |
| 94 | const gchar *tag) |
| 95 | { |
| 96 | if (string[0] == '.' || string[0] == '[') { |
| 97 | auto arrow_field_ref_result = arrow::FieldRef::FromDotPath(string); |
| 98 | if (!garrow::check(error, arrow_field_ref_result, tag)) { |
| 99 | return false; |
| 100 | } |
| 101 | arrow_field_refs.push_back(std::move(*arrow_field_ref_result)); |
| 102 | } else { |
| 103 | arrow_field_refs.emplace_back(string); |
| 104 | } |
| 105 | return true; |
| 106 | } |
| 107 | |
| 108 | GList * |
| 109 | garrow_sort_keys_new_raw(std::vector<arrow::compute::SortKey> &arrow_sort_keys) |
no test coverage detected