Skip to content

Commit

Permalink
Update for change to df_to_recordbatch
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 17, 2024
1 parent 76f319a commit f715b73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipe/section/section_impls/bacalhau/src/destination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ impl Bacalhau {
section_channel.log(format!("got dataframe chunk from {}:\n{}", msg.origin(), pretty_print(&*frame))).await?;


let batch = df_to_recordbatch(frame).unwrap();
let batch = df_to_recordbatch(frame.as_ref()).unwrap();
let json_rows = arrow_json::writer::record_batches_to_json_rows(&[&batch]).unwrap();
let first = json_rows.first().unwrap();
let args: HashMap<String, String> = first.iter().map(|(k, v)| {
Expand Down

0 comments on commit f715b73

Please sign in to comment.