File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -13,26 +13,6 @@ namespace DuckDB.NET.Test;
1313[ Experimental ( "DuckDBNET001" ) ]
1414public class TableFunctionTests ( DuckDBDatabaseFixture db ) : DuckDBTestBase ( db )
1515{
16- [ Fact ]
17- public void RegisterTableFunctionWithOneParameter ( )
18- {
19- Connection . RegisterTableFunction < int > ( "demo" , async ( parameters ) =>
20- {
21- var value = parameters [ 0 ] . GetValue < int > ( ) ;
22-
23- return new TableFunction ( new List < ColumnInfo > ( )
24- {
25- new ColumnInfo ( "foo" , typeof ( int ) ) ,
26- } , Enumerable . Range ( 0 , value ) ) ;
27- } , ( item , writers , rowIndex ) =>
28- {
29- writers [ 0 ] . WriteValue ( ( int ) item , rowIndex ) ;
30- } ) ;
31-
32- var data = Connection . Query < int > ( "SELECT * FROM demo(30);" ) ;
33- data . Should ( ) . BeEquivalentTo ( Enumerable . Range ( 0 , 30 ) ) ;
34- }
35-
3616 [ Fact ]
3717 public void RegisterTableFunctionWithTwoParameters ( )
3818 {
You can’t perform that action at this time.
0 commit comments