This package includes macros that are used in Datawaves's dbt packages.
Returns a substring of the supplied string or binary value.
{{ datawaves_utils.substring("text", "position", "length") }}
Converts expression
to hexadecimal.
{{ datawaves_utils.hex("binary_field") }}
A binary literal is used to specify a byte sequence value.
{{ datawaves_utils.binary_literal('01010101') }}
Adjust the token amount according to the decimals.
{{ datawaves_utils.displayed_amount("original_amount", "decimals") }}
Convert a binary column to numeric type.
{ datawaves_utils.binary_to_numeric("binary_field")) }}
Convert a binary column to a hex string started with 0x.
{{ datawaves_utils.binary_to_address("binary_field") }}