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

Function garrow_literal_expression_new

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

* garrow_literal_expression_new: * @datum: A #GArrowDatum. * * Returns: A newly created #GArrowLiteralExpression. * * Since: 6.0.0 */

Source from the content-addressed store, hash-verified

251 * Since: 6.0.0
252 */
253GArrowLiteralExpression *
254garrow_literal_expression_new(GArrowDatum *datum)
255{
256 auto arrow_datum = garrow_datum_get_raw(datum);
257 auto arrow_expression = arrow::compute::literal(arrow_datum);
258 return GARROW_LITERAL_EXPRESSION(garrow_expression_new_raw(arrow_expression,
259 "expression",
260 &arrow_expression,
261 "datum",
262 datum,
263 nullptr));
264}
265
266G_DEFINE_TYPE(GArrowFieldExpression, garrow_field_expression, GARROW_TYPE_EXPRESSION)
267

Callers

nothing calls this directly

Calls 2

literalFunction · 0.50

Tested by

no test coverage detected