Skip to content

Commit 200d026

Browse files
committed
dolphin: Add FROM_UNIXTIME signature
Fixes #655
1 parent f8ac6a3 commit 200d026

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

internal/engine/dolphin/stdlib.go

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -564,9 +564,25 @@ func defaultSchema(name string) *catalog.Schema {
564564
ReturnType: &ast.TypeName{Name: "any"},
565565
},
566566
{
567-
Name: "FROM_UNIXTIME",
568-
Args: []*catalog.Argument{},
569-
ReturnType: &ast.TypeName{Name: "any"},
567+
Name: "FROM_UNIXTIME",
568+
Args: []*catalog.Argument{
569+
{
570+
Type: &ast.TypeName{Name: "bigint"},
571+
},
572+
},
573+
ReturnType: &ast.TypeName{Name: "text"},
574+
},
575+
{
576+
Name: "FROM_UNIXTIME",
577+
Args: []*catalog.Argument{
578+
{
579+
Type: &ast.TypeName{Name: "bigint"},
580+
},
581+
{
582+
Type: &ast.TypeName{Name: "text"},
583+
},
584+
},
585+
ReturnType: &ast.TypeName{Name: "text"},
570586
},
571587
{
572588
Name: "GEOMCOLLECTION",

0 commit comments

Comments
 (0)