Skip to content

Commit 4678e45

Browse files
authored
Merge pull request #3164 from dolthub/jennifer/tbl-func-wrapper
handle RowIter as result from Eval function in TableFunctionWrapper
2 parents b961afb + 8e04ca9 commit 4678e45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sql/expression/tablefunction/table_function.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ func (t *TableFunctionWrapper) RowIter(ctx *sql.Context, r sql.Row) (sql.RowIter
8585
if err != nil {
8686
return nil, err
8787
}
88-
//if ri, ok := v.(sql.RowIter); ok {
89-
// return ri, nil
90-
//}
88+
if ri, ok := v.(sql.RowIter); ok {
89+
return ri, nil
90+
}
9191
return sql.RowsToRowIter(sql.Row{v}), nil
9292
}
9393

0 commit comments

Comments
 (0)