diff --git a/src/graph/validator/MatchValidator.cpp b/src/graph/validator/MatchValidator.cpp index 524f576ee03..7b67028f733 100644 --- a/src/graph/validator/MatchValidator.cpp +++ b/src/graph/validator/MatchValidator.cpp @@ -481,14 +481,6 @@ Status MatchValidator::validateReturn(MatchReturn *ret, NG_RETURN_IF_ERROR(validatePagination(ret->skip(), ret->limit(), *paginationCtx)); retClauseCtx.pagination = std::move(paginationCtx); - /* - if (!preValidatedOrderBy && ret->orderFactors() != nullptr) { - auto orderByCtx = getContext(); - NG_RETURN_IF_ERROR( - validateOrderBy(ret->orderFactors(), retClauseCtx.yield->yieldColumns, *orderByCtx)); - retClauseCtx.order = std::move(orderByCtx); - } - */ return Status::OK(); } @@ -908,7 +900,6 @@ Status MatchValidator::validateOrderBy(MatchReturn *ret, orderByCtx.indexedOrderFactors.emplace_back(iter->second, factor->orderType()); } } - // retClauseCtx.order = std::move(orderByCtx); return Status::OK(); }