Bolt 后端标量函数支持

qianmoQqianmoQ· 更新于 2026-10-02· 阅读 18 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Bolt 标量函数支持状态

本文档列出了当前版本 Bolt 中默认注册并在运行时可用的标量函数。

总体概述

状态列图例:

  • S:已支持。当前实现完全可用,不存在明显的功能缺失或特殊限制。
  • PS:部分支持。该函数可用,但存在重要的限制或使用前提(详见“限制/说明”列)。
  • 空白:本列表中未使用。

按类别统计

类别函数数量
Array24
Bitwise4
Collection2
Conditional0
Conversion6
Date & Timestamp50
Hash26
JSON12
Lambda3
Map16
Mathematical54
Misc2
Predicate11
String79
Struct1
URL10

数组函数

Bolt 函数状态限制/说明
all_matchS
any_matchS
array_containsS
array_distinctS
array_duplicatesS
array_exceptS
array_intersectS
array_positionS
array_sortS
array_sort_descS
array_sumS
arrays_overlapS
containsS
elementS
find_firstS
find_first_indexS
none_matchS
repeatS
sequenceS
shuffleS
sliceS
sort_arrayS
zipS
zip_withS

位运算函数

Bolt 函数状态限制/说明
bit_countS
bitwise_arithmetic_shift_rightS
bitwise_logical_shift_rightS
bitwise_shift_leftS

集合函数

| Bolt 函数 | 状态 | 限制/说明 |

|
|--------------------|--------|--------------------|
|
| cardinality | S | |
| empty_approx_set | S | |

条件函数

| Bolt 函数 | 状态 | 限制/说明 |

|
|------------------|--------|-----------------------------------------------------------------------------|
|
| 无 | | 本次审计未逐一列出条件标量函数。 |

转换函数

| Bolt 函数 | 状态 | 限制/说明 |

|
|------------------|--------|--------------------|
|
| from_base | S | |
| from_utf8 | S | |
| to_base | S | |
| to_bigint | S | |
| to_integer | S | |
| to_utf8 | S | |

日期与时间戳函数

Bolt 函数状态限制/说明
current_dateS
dateS
date2pdateS
date_addS
date_diffS
date_formatS
date_parseS
date_truncS
datediffS
dayS
day_of_monthS
day_of_weekS
day_of_yearS
dayofmonthS
dayofweekS
dayofyearS
dowS
doyS
format_datetimeS
from_unixtimeS
hourS
last_dayS
last_day_of_monthS
millisecondS
minusS
minuteS
monthS
months_betweenS
next_dayS
parse_datetimeS
pdate2dateS
plusS
quarterS
secondS
timestampaddS
timestampdiffS
timezone_hourS
timezone_minuteS
to_dateS
to_timestampS
to_unix_timestampS
to_unixtimeS
truncS
unix_timestampS
weekS
week_of_yearS
weekofyearS
yearS
year_of_weekS
yowS

哈希函数

Bolt 函数状态限制/说明
base64S
crc32S
from_base64S
from_base64urlS
from_big_endian_32S
from_big_endian_64S
from_hexS
from_ieee754_64S
hmac_md5S
hmac_sha1S
hmac_sha256S
hmac_sha512S
md5S
sha1S
sha256S
sha512S
spooky_hash_v2_32S
spooky_hash_v2_64S
to_base64S
to_base64urlS
to_big_endian_32S
to_big_endian_64S
to_hexS
to_ieee754_32S
to_ieee754_64S
xxhash64S

JSON 函数

Bolt 函数状态限制/说明
get_json_objectPSJSON 路径函数支持 JSON 文本中的 UTF-8,但对 json_path 中的 UTF-8 支持有限。行为可能取决于 QueryConfig 设置(例如,遇到无效 JSON 时是否抛出异常)。
get_json_object_detect_bad_jsonPSJSON 路径函数支持 JSON 文本中的 UTF-8,但对 json_path 中的 UTF-8 支持有限。行为可能取决于 QueryConfig 设置(例如,遇到无效 JSON 时是否抛出异常)。
is_json_scalarS
json_array_containsS
json_array_lengthS
json_extractPSJSON 路径函数支持 JSON 文本中的 UTF-8,但对 json_path 中的 UTF-8 支持有限。行为可能取决于 QueryConfig 设置(例如,遇到无效 JSON 时是否抛出异常)。
json_extract_scalarPSJSON 路径函数支持 JSON 文本中的 UTF-8,但对 json_path 中的 UTF-8 支持有限。行为可能取决于 QueryConfig 设置(例如,遇到无效 JSON 时是否抛出异常)。
json_formatS
json_parseS
json_sizePSJSON 路径函数支持 JSON 文本中的 UTF-8,但对 json_path 中的 UTF-8 支持有限。行为可能取决于 QueryConfig 设置(例如,遇到无效 JSON 时是否抛出异常)。
json_to_mapS
to_jsonS

Lambda 函数

Bolt 函数状态限制/说明
filterS
reduceS
transformS

Map 函数

Bolt 函数状态限制/说明
all_keys_matchS
any_keys_matchS
any_values_matchS
mapS
map_entriesS
map_filterS
map_filter_keysS
map_from_entriesS
map_keysS
map_updateS
map_valuesS
map_zip_withS
no_keys_matchS
no_values_matchS
str_to_mapS
transform_keysS
transform_valuesS

数学函数

Bolt 函数状态限制/备注
absS
acosS
asinS
atanS
atan2S
beta_cdfS
binomial_cdfS
bytedance_ceilS
bytedance_floorS
bytedance_lnS
bytedance_randS
cauchy_cdfS
cbrtS
chi_squared_cdfS
clampS
cosS
coshS
degreesS
divideS
eS
expS
f_cdfS
find_in_setS
gamma_cdfS
infinityS
inverse_beta_cdfS
laplace_cdfS
lnS
logS
log10S
log2S
multiplyS
nanS
negateS
normal_cdfS
notS
piS
poisson_cdfS
powS
powerS
radiansS
randS
randomS
roundS
sinS
sqrtS
tanS
tanhS
translateS
truncateS
weibull_cdfS
width_bucketS
wilson_interval_lowerS
wilson_interval_upperS

杂项函数

Bolt 函数状态限制/说明
greatestS
leastS

谓词函数

Bolt 函数状态限制/说明
betweenS
eqS
gtS
gteS
inS
is_finiteS
is_infiniteS
is_nanS
ltS
lteS
neqS

字符串函数

Bolt 函数状态限制/说明
asciiS
base64S
bit_lengthS
chrS
codepointS
concatS
concat_ws_sparkS
containsS
convS
empty2nullS
ends_withS
endswithS
find_in_setS
format_numberS
instrS
lengthS
levenshteinS
levenshtein_distanceS
likePS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
locateS
lowerS
lpadS
ltrimS
maskS
overlayS
repeatS
regexp_extractPS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
regexp_extract_allPS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
regexp_likePS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
regexp_replacePS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
replaceS
reverseS
rightS
rlikePS使用 RE2 正则引擎,它是 PCRE 的子集,不支持回溯、反向引用或环视。某些实现(例如 regexp_replace、regexp_split)要求模式必须为常量。
rpadS
rtrimS
soundexS
spaceS
splitS
split_partS
starts_withS
startswithS
strposS
strrposS
substrS
substringS
substring_indexS
to_titleS
translateS
trimS
unbase64S
upperS
uuidS

Struct Functions

Bolt Function(s)StatusRestrictions/Notes
row_constructorS

URL Functions

Bolt Function(s)StatusRestrictions/Notes
parse_urlS
url_decodeS
url_encodeS
url_extract_fragmentS
url_extract_hostS
url_extract_parameterS
url_extract_pathS
url_extract_portS
url_extract_protocolS
url_extract_queryS

XML Functions

Bolt 目前尚未注册任何与 XML 相关的标量函数。

评论

登录后参与评论

正在加载评论…