Skip to content

Commit e9edd66

Browse files
committed
Add AggFn
1 parent a1772c4 commit e9edd66

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

cmd/simple/engine_test.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ func TestParquetFile(t *testing.T) {
1515
t.Error(err)
1616
}
1717

18-
//df = df.
19-
// Filter(logicalplan.Eq(
20-
// logicalplan.ColumnExpr{Name: "c1"},
21-
// logicalplan.LiteralInt64Expr{Val: 200},
22-
// )).
23-
// Project(
24-
// logicalplan.ColumnExpr{Name: "c1"},
25-
// logicalplan.ColumnExpr{Name: "c2"},
26-
// ).Aggregate(
27-
// []logicalplan.Expr{
28-
// logicalplan.ColumnExpr{Name: "c1"},
29-
// },
30-
// []logicalplan.AggregateExpr{
31-
// {
32-
// Name: "sum",
33-
// Expr: logicalplan.ColumnExpr{Name: "c2"},
34-
// },
35-
// })
18+
df = df.
19+
Filter(logicalplan.Eq(
20+
logicalplan.ColumnExpr{Name: "c1"},
21+
logicalplan.LiteralInt64Expr{Val: 200},
22+
)).
23+
Project(
24+
logicalplan.ColumnExpr{Name: "c1"},
25+
logicalplan.ColumnExpr{Name: "c2"},
26+
).Aggregate(
27+
[]logicalplan.Expr{
28+
logicalplan.ColumnExpr{Name: "c1"},
29+
},
30+
[]logicalplan.AggregateExpr{
31+
{
32+
Name: "sum",
33+
Expr: logicalplan.ColumnExpr{Name: "c2"},
34+
},
35+
})
3636

3737
logicalPlan, _ := df.LogicalPlan()
3838
fmt.Println(logicalplan.PrettyPrint(logicalPlan, 0))

0 commit comments

Comments
 (0)