Bolt 后端聚合函数支持

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

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

Bolt 聚合函数支持情况

在 Spark 3.5 的 62 个聚合函数中,Gluten 目前对 Bolt 后端完整支持 54 个函数,部分支持 1 个函数。

聚合函数

Spark 函数Spark 表达式状态限制条件
anyBoolOrS
any_valueAnyValueS
approx_count_distinctHyperLogLogPlusPlusS仅当子表达式的数据类型为 Boolean、Byte、Short、Int、Long、Float、Double、String、Char、Decimal、Date、Timestamp 或 Binary 之一时才支持。
approx_percentileApproximatePercentileS
array_aggCollectListS
avgAverageS
bit_andBitAndAggS
bit_orBitOrAggS
bit_xorBitXorAggS
bitmap_construct_aggBitmapConstructAgg
bitmap_or_aggBitmapOrAgg
bool_andBoolAndS
bool_orBoolOrS
collect_listCollectListS
collect_setCollectSetS
corrCorrS
countCountS
count_ifCountIfS
count_min_sketchCountMinSketchAggExpressionBuilder
covar_popCovPopulationS
covar_sampCovSampleS
everyBoolAndS
firstFirstS
first_valueFirstS
groupingGroupingS
grouping_idGroupingIDS
histogram_numericHistogramNumeric
hll_sketch_aggHllSketchAgg
hll_union_aggHllUnionAgg
kurtosisKurtosisS
lastLastS
last_valueLastS
maxMaxS
max_byMaxByS
meanAverageS
medianMedianS
minMinS
min_byMinByS
modeMode
percentilePercentileS
percentile_approxApproximatePercentileS
regr_avgxRegrAvgXS
regr_avgyRegrAvgYS
regr_countRegrCountS
regr_interceptRegrInterceptS
regr_r2RegrR2S
regr_slopeRegrSlopeS
regr_sxxRegrSXXS
regr_sxyRegrSXYS
regr_syyRegrSYYS
skewnessSkewnessS
someBoolOrS
stdStddevSampS
stddevStddevSampS
stddev_popStddevPopS
stddev_sampStddevSampS
sumSumS
try_avgTryAverageExpressionBuilderS
try_sumTrySumExpressionBuilderPS部分支持。在某些情况下行为可能与原生 Spark 不同。
var_popVariancePopS
var_sampVarianceSampS
varianceVarianceSampS

评论

登录后参与评论

正在加载评论…