Skip to content

Commit 30da95a

Browse files
committed
not sure how to fix the sort with negation
1 parent 9c78656 commit 30da95a

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

src/core/expr/funary/unary_minus.cc

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -87,41 +87,7 @@ class FExpr_UnaryMinus : public FExpr_FuncUnary {
8787
}
8888
};
8989

90-
91-
// gets the count of all rows - nulls are not checked
92-
class FExpr_UnaryMinus_Node : public FExpr_Func {
93-
private:
94-
ptrExpr arg_;
95-
public:
96-
FExpr_UnaryMinus_Node(ptrExpr &&arg)
97-
: arg_(std::move(arg))
98-
{}
99-
100-
std::string repr() const override {
101-
std::string out = "uminus";
102-
out += '(';
103-
out += arg_->repr();
104-
out += ')';
105-
return out;
106-
}
107-
108-
Workframe evaluate_n(EvalContext &ctx) const override {
109-
Workframe wf(ctx);
110-
111-
return wf;
112-
}
113-
114-
};
115-
11690
py::oobj PyFExpr::nb__neg__(py::robj src) {
117-
std::cout<<src.is_by_node()<<std::endl;
118-
std::cout<<src.is_sort_node()<<std::endl;
119-
if (src.is_by_node()){
120-
return PyFExpr::make(
121-
new FExpr_UnaryMinus_Node(as_fexpr(src)));
122-
123-
}
124-
12591
return PyFExpr::make(
12692
new FExpr_UnaryMinus(as_fexpr(src)));
12793
}

0 commit comments

Comments
 (0)