Crate tiders_cast

Crate tiders_cast 

Source
Expand description

§tiders-cast

Type casting and encoding/decoding utilities for Arrow columns and schemas.

Provides batch-level and column-level operations for:

  • Type casting: Convert columns between Arrow data types by name or by source type.
  • Hex encoding/decoding: Binary columns to/from hex strings (with optional 0x prefix).
  • Base58 encoding/decoding: Binary columns to/from Base58 strings (Bitcoin alphabet).
  • U256 conversion: Between Decimal256(76,0) and big-endian binary representations.

Functions§

base58_decode_column
Decodes a Base58-encoded string column to binary.
base58_encode
Encodes all Binary and LargeBinary columns in the batch to Base58 (Bitcoin alphabet) strings.
base58_encode_column
Encodes a single binary column to Base58 strings.
cast
Casts columns according to given (column name, target data type) pairs.
cast_by_type
Casts all columns with from_type to to_type.
cast_schema
Casts column types according to given (column name, target data type) pairs.
cast_schema_by_type
Casts columns with from_type to to_type
hex_decode_column
Decodes a hex-encoded string column to binary.
hex_encode
Encodes all Binary and LargeBinary columns in the batch to hex strings.
hex_encode_column
Encodes a single binary column to hex strings.
schema_binary_to_string
Converts binary fields to string in the schema
schema_decimal256_to_binary
Converts decimal256 fields to binary in the schema
u256_column_from_binary
Converts a big-endian binary column (up to 32 bytes) to Decimal256(76,0).
u256_column_to_binary
Converts a Decimal256(76,0) column to trimmed big-endian binary.
u256_to_binary
Converts all Decimal256 (U256) columns in the batch to big endian binary values