BASE64_TO_HEX

Converts a base 64 string into a hex string.

Syntax

BASE64_TO_HEX(value)

Arguments

NameTypeDescriptionDefault Value

value

string

Returns

string

Examples

valueOutput

'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 $commit_time BETWEEN run_start_time() AND run_end_time()
    LIMIT 1;

Query result

valueOutput

'AAAAAAAAAP8='

00000000000000ff

Last updated