Thalweg · API reference ← Main docs

Module avro_decimal

Module avro_decimal 

Source
Expand description

Avro decimal decoding UDF.

Decodes Avro-encoded decimals (variable-length big-endian two’s-complement) into Arrow Decimal128 with user-specified precision and scale.

Enums§

AvroDecimalError
Errors from decoding a single Avro decimal byte string.

Functions§

make_decode_avro_decimal_udf
decode_avro_decimal(binary_col, precision, scale) — decode Avro variable-length big-endian two’s-complement decimal into Arrow Decimal128.