跳转至

Convert from hexadecimal to string(从十六进制转换为字符串(convert from hexadecimal to string))

Supported in: Batch, Faster, Streaming

Inverse of hex, interprets each pair of characters as a hexadecimal number and converts to the utf-8 string of the byte representation of the number.

Expression categories: String

Declared arguments

  • Expression: String column to unhex.
    Expression\

Output type: String

Examples

Example 1: Base case

Argument values:

  • Expression: string_hex
string_hex Output
68656C6C6F hello
4C6F6E646F6E London

Example 2: Null case

Argument values:

  • Expression: null
string_hex Output
null null


中文翻译


从十六进制转换为字符串(convert from hexadecimal to string)

支持:批处理(Batch)、快速处理(Faster)、流处理(Streaming)

hex 的逆运算,将每对字符解释为一个十六进制数,并转换为该数字字节表示对应的 UTF-8 字符串。

表达式类别: 字符串(String)

声明的参数

  • 表达式(Expression): 需要进行 unhex 操作的字符串列。
    表达式\

输出类型: String

示例

示例 1:基础情况

参数值:

  • 表达式: string_hex
string_hex 输出
68656C6C6F hello
4C6F6E646F6E London

示例 2:空值情况

参数值:

  • 表达式: null
string_hex 输出
null null