Constructor

ArrowDecimalDataTypenew

Declaration [src]

GArrowDecimalDataType*
garrow_decimal_data_type_new (
  gint32 precision,
  gint32 scale,
  GError** error
)

Description

No description available.
Available since:0.10.0

Parameters

precision gint32
 

The precision of decimal data.

scale gint32
 

The scale of decimal data.

error GError **
  The return location for a GError*, or NULL.

Return value

Returns: GArrowDecimalDataType
 

The newly created decimal data type on success, NULL on error.

GArrowDecimal256DataType is used if precision is larger than garrow_decimal128_data_type_max_precision(), GArrowDecimal128DataType is used otherwise.

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