Links

HEX_TO_DECIMAL

Converts a hexadecimal string value to the corresponding signed 64-bit integer

Syntax

HEX_TO_DECIMAL(value)

Arguments

Name
Type
Description
Default Value
value
string
The hexadecimal string value to convert

Returns

bigint

Examples

value
Output
'###'
null
'ff'
255
'0xff'
255

Transformation job example

SQL

CREATE JOB function_operator_example
ADD_MISSING_COLUMNS = true
AS INSERT INTO default_glue_catalog.upsolver_samples.orders_transformed_data MAP_COLUMNS_BY_NAME
SELECT value,
HEX_TO_DECIMAL(value) AS Output
FROM default_glue_catalog.upsolver_samples.orders_raw_data
LET value = '###'
WHERE time_filter()
LIMIT 1;

Query result

value
Output
'###'
null