Skip to content

Commit

Permalink
Enable var_samp and var_pop in validator (oap-project#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
liujiayi771 authored and zhejiangxiaomai committed Apr 14, 2023
1 parent 7605add commit 4745c27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion velox/substrait/SubstraitToVeloxPlanValidator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,8 @@ bool SubstraitToVeloxPlanValidator::validate(
}

std::unordered_set<std::string> supportedFuncs = {
"sum", "count", "avg", "min", "max", "stddev_samp", "stddev_pop", "bloom_filter_agg"};
"sum", "count", "avg", "min", "max", "stddev_samp", "stddev_pop",
"bloom_filter_agg", "var_samp", "var_pop"};
for (const auto& funcSpec : funcSpecs) {
auto funcName = subParser_->getSubFunctionName(funcSpec);
if (supportedFuncs.find(funcName) == supportedFuncs.end()) {
Expand Down

0 comments on commit 4745c27

Please sign in to comment.