Skip to content

Commit

Permalink
remove unwraps
Browse files Browse the repository at this point in the history
  • Loading branch information
OussamaSaoudi-db committed Sep 24, 2024
1 parent 440242c commit 059b48c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/engine/arrow_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ pub fn expression_to_row_filter(
parquet_physical_schema: &SchemaDescriptor,
) -> DeltaResult<RowFilter> {
let cols = get_columns_from_expression(&predicate);
let expr_schema = requested_schema.project(&cols).unwrap();
let (indices, _) = get_requested_indices(&expr_schema, parquet_schema).unwrap();
let expr_schema = requested_schema.project(&cols)?;
let (indices, _) = get_requested_indices(&expr_schema, parquet_schema)?;
let projection_mask = generate_mask(
&expr_schema,
parquet_schema,
Expand Down

0 comments on commit 059b48c

Please sign in to comment.