* garrow_field_expression_new: * @reference: A field name or dot path. * @error: (nullable): Return location for a #GError or %NULL. * * Returns: A newly created #GArrowFieldExpression on success, %NULL on * error. * * Since: 6.0.0 */
| 286 | * Since: 6.0.0 |
| 287 | */ |
| 288 | GArrowFieldExpression * |
| 289 | garrow_field_expression_new(const gchar *reference, GError **error) |
| 290 | { |
| 291 | auto arrow_reference_result = garrow_field_reference_resolve_raw(reference); |
| 292 | if (!garrow::check(error, arrow_reference_result, "[field-expression][new]")) { |
| 293 | return NULL; |
| 294 | } |
| 295 | auto arrow_expression = arrow::compute::field_ref(*arrow_reference_result); |
| 296 | return GARROW_FIELD_EXPRESSION(garrow_expression_new_raw(arrow_expression)); |
| 297 | } |
| 298 | |
| 299 | struct GArrowCallExpressionPrivate |
| 300 | { |
nothing calls this directly
no test coverage detected