Method

ArrowScalarcast

Declaration [src]

GArrowScalar*
garrow_scalar_cast (
  GArrowScalar* scalar,
  GArrowDataType* data_type,
  GArrowCastOptions* options,
  GError** error
)

Description

No description available.
Available since:5.0.0

Parameters

data_type GArrowDataType
 

A GArrowDataType of the casted scalar.

 The data is owned by the caller of the function.
options GArrowCastOptions
 

A GArrowCastOptions.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GArrowScalar
 

A newly created casted scalar on success, NULL on error.

 The caller of the method takes ownership of the data, and is responsible for freeing it.
 The return value can be NULL.