diff --git a/src/planner/expression_binder.cpp b/src/planner/expression_binder.cpp index 32bf350948..59c0c82d53 100644 --- a/src/planner/expression_binder.cpp +++ b/src/planner/expression_binder.cpp @@ -898,6 +898,11 @@ SharedPtr ExpressionBinder::BuildSearchExpr(const SearchExpr &ex } case ParsedExprType::kMatchSparse: { const auto &match_sparse = *static_cast(match_expr); + for(auto ¶m : match_sparse.opt_params_){ + if(param->param_name_ != "alpha" and param->param_name_ != "beta" and param->param_name_ != "tail"){ + RecoverableError(Status::SyntaxError(fmt::format("Unsupported optional parameter: {}", param->param_name_))); + } + } if (match_sparse.filter_expr_) { have_filter_in_subsearch = true; }