Skip to content

Commit 7b9c95a

Browse files
committed
dolphin: Placeholder agg func convert
1 parent 61000b8 commit 7b9c95a

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

internal/engine/dolphin/convert.go

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,8 +445,22 @@ func (c *cc) convertAdminStmt(n *pcast.AdminStmt) ast.Node {
445445
return &ast.TODO{}
446446
}
447447

448-
func (c *cc) convertAggregateFuncExpr(n *pcast.AggregateFuncExpr) ast.Node {
449-
return &ast.TODO{}
448+
func (c *cc) convertAggregateFuncExpr(n *pcast.AggregateFuncExpr) *ast.FuncCall {
449+
return &ast.FuncCall{
450+
Func: &ast.FuncName{
451+
Name: "count",
452+
},
453+
Funcname: &ast.List{
454+
Items: []ast.Node{
455+
&ast.String{
456+
Str: "count",
457+
},
458+
},
459+
},
460+
Args: &ast.List{},
461+
AggOrder: &ast.List{},
462+
AggStar: true,
463+
}
450464
}
451465

452466
func (c *cc) convertAlterDatabaseStmt(n *pcast.AlterDatabaseStmt) ast.Node {

0 commit comments

Comments
 (0)