Skip to content

Commit fdfdd90

Browse files
committed
dolphin: flow control function signatures
1 parent 200d026 commit fdfdd90

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

internal/engine/dolphin/stdlib.go

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -645,13 +645,30 @@ func defaultSchema(name string) *catalog.Schema {
645645
ReturnType: &ast.TypeName{Name: "any"},
646646
},
647647
{
648-
Name: "IF",
649-
Args: []*catalog.Argument{},
648+
Name: "IF",
649+
Args: []*catalog.Argument{
650+
{
651+
Type: &ast.TypeName{Name: "any"},
652+
},
653+
{
654+
Type: &ast.TypeName{Name: "any"},
655+
},
656+
{
657+
Type: &ast.TypeName{Name: "any"},
658+
},
659+
},
650660
ReturnType: &ast.TypeName{Name: "any"},
651661
},
652662
{
653-
Name: "IFNULL",
654-
Args: []*catalog.Argument{},
663+
Name: "IFNULL",
664+
Args: []*catalog.Argument{
665+
{
666+
Type: &ast.TypeName{Name: "any"},
667+
},
668+
{
669+
Type: &ast.TypeName{Name: "any"},
670+
},
671+
},
655672
ReturnType: &ast.TypeName{Name: "any"},
656673
},
657674
{
@@ -1150,8 +1167,15 @@ func defaultSchema(name string) *catalog.Schema {
11501167
ReturnType: &ast.TypeName{Name: "any"},
11511168
},
11521169
{
1153-
Name: "NULLIF",
1154-
Args: []*catalog.Argument{},
1170+
Name: "NULLIF",
1171+
Args: []*catalog.Argument{
1172+
{
1173+
Type: &ast.TypeName{Name: "any"},
1174+
},
1175+
{
1176+
Type: &ast.TypeName{Name: "any"},
1177+
},
1178+
},
11551179
ReturnType: &ast.TypeName{Name: "any"},
11561180
},
11571181
{

0 commit comments

Comments
 (0)