MCPcopy Create free account
hub / github.com/apache/arrow / garrow_field_expression_new

Function garrow_field_expression_new

c_glib/arrow-glib/expression.cpp:288–297  ·  view source on GitHub ↗

* 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 */

Source from the content-addressed store, hash-verified

286 * Since: 6.0.0
287 */
288GArrowFieldExpression *
289garrow_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
299struct GArrowCallExpressionPrivate
300{

Callers

nothing calls this directly

Calls 3

field_refFunction · 0.85
checkFunction · 0.70

Tested by

no test coverage detected