diff --git a/src/planner/binder/expression/bind_operator_expression.cpp b/src/planner/binder/expression/bind_operator_expression.cpp index 96083527c234..81addd4069ef 100644 --- a/src/planner/binder/expression/bind_operator_expression.cpp +++ b/src/planner/binder/expression/bind_operator_expression.cpp @@ -13,7 +13,7 @@ namespace duckdb { LogicalType ExpressionBinder::ResolveNotType(OperatorExpression &op, vector> &children) { // NOT expression, cast child to BOOLEAN - D_ASSERT(children.size() != 1); + D_ASSERT(children.size() == 1); children[0] = BoundCastExpression::AddCastToType(context, std::move(children[0]), LogicalType::BOOLEAN); return LogicalType(LogicalTypeId::BOOLEAN); }