Skip to content

Commit

Permalink
fix udtf
Browse files Browse the repository at this point in the history
Signed-off-by: Runji Wang <[email protected]>
  • Loading branch information
wangrunji0408 committed May 7, 2024
1 parent 5341ee4 commit 3c6e87a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/expr/core/src/table_function/user_defined.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ impl UserDefinedTableFunction {
// compact the input chunk and record the row mapping
let visible_rows = direct_input.visibility().iter_ones().collect::<Vec<_>>();
// this will drop invisible rows
let arrow_input = UdfArrowConvert.to_record_batch(self.arg_schema.clone(), input)?;
let arrow_input =
UdfArrowConvert.to_record_batch(self.arg_schema.clone(), &direct_input)?;

// call UDTF
#[for_await]
Expand Down

0 comments on commit 3c6e87a

Please sign in to comment.