Skip to content

Commit

Permalink
more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangjinwu committed Feb 21, 2023
1 parent 3d8d92f commit 616b8c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/src/array/column_proto_readers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ macro_rules! read_one_value_array {
}
}
let arr = builder.finish();
ensure_eq!(arr.len(), cardinality);

Ok(arr.into())
}
)*
Expand Down Expand Up @@ -197,5 +199,7 @@ pub fn read_string_array<B: ArrayBuilder, R: VarSizedValueReader<B>>(
}
}
let arr = builder.finish();
ensure_eq!(arr.len(), cardinality);

Ok(arr.into())
}

0 comments on commit 616b8c3

Please sign in to comment.