Skip to content

Commit cbf8045

Browse files
authored
feat: Export is_dense public (#8544)
# Which issue does this PR close? - Closes #8503 # Rationale for this change # What changes are included in this PR? # Are these changes tested? # Are there any user-facing changes?
1 parent 8e5d826 commit cbf8045

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrow-array/src/array/union_array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ impl UnionArray {
312312
}
313313

314314
/// Returns whether the `UnionArray` is dense (or sparse if `false`).
315-
fn is_dense(&self) -> bool {
315+
pub fn is_dense(&self) -> bool {
316316
match self.data_type() {
317317
DataType::Union(_, mode) => mode == &UnionMode::Dense,
318318
_ => unreachable!("Union array's data type is not a union!"),

0 commit comments

Comments
 (0)