Skip to content

Commit

Permalink
Revert "REVERT ME! Induce arrow error in expression eval"
Browse files Browse the repository at this point in the history
This reverts commit b0a90a4.
  • Loading branch information
nicklan committed Mar 26, 2024
1 parent 8ce1eaf commit bc81d5b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions kernel/src/client/arrow_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,8 @@ fn evaluate_expression(
.iter()
.zip(schema.fields())
.map(|(expr, field)| evaluate_expression(expr, batch, Some(field.data_type())));
let mut fields = output_schema.all_fields();
fields.pop();
let fields: Vec<arrow_schema::Field> = fields.into_iter().cloned().collect();
let result = StructArray::try_new(
arrow_schema::Fields::from(fields),
columns.try_collect()?,
None,
)?;
let result =
StructArray::try_new(output_schema.fields().clone(), columns.try_collect()?, None)?;
Ok(Arc::new(result))
}
(Struct(_), _) => Err(Error::generic(
Expand Down

0 comments on commit bc81d5b

Please sign in to comment.