Links

BASE64_TO_HEX

Converts a base 64 string into a hex string

Syntax

BASE64_TO_HEX(value)

Arguments

Name
Type
Description
Default Value
value
string

Returns

string

Examples

value
Output
'AAAAAAAAAP8='
00000000000000ff
'/w=='
ff
'QWxsIHlvdXIgYmFzZQ=='
416c6c20796f75722062617365
'###'
null

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,
BASE64_TO_HEX(value) AS Output
FROM default_glue_catalog.upsolver_samples.orders_raw_data
LET value = 'AAAAAAAAAP8='
WHERE time_filter()
LIMIT 1;

Query result

value
Output
'AAAAAAAAAP8='
00000000000000ff