This is an automated email from the ASF dual-hosted git repository.

alamb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/main by this push:
     new cbf8045e2f feat: Export `is_dense` public (#8544)
cbf8045e2f is described below

commit cbf8045e2f74398196a1408bc4ebd0c4d23afc66
Author: Alex Huang <[email protected]>
AuthorDate: Fri Oct 3 19:22:55 2025 +0300

    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?
---
 arrow-array/src/array/union_array.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrow-array/src/array/union_array.rs 
b/arrow-array/src/array/union_array.rs
index 801729fda6..478ca0013e 100644
--- a/arrow-array/src/array/union_array.rs
+++ b/arrow-array/src/array/union_array.rs
@@ -312,7 +312,7 @@ impl UnionArray {
     }
 
     /// Returns whether the `UnionArray` is dense (or sparse if `false`).
-    fn is_dense(&self) -> bool {
+    pub fn is_dense(&self) -> bool {
         match self.data_type() {
             DataType::Union(_, mode) => mode == &UnionMode::Dense,
             _ => unreachable!("Union array's data type is not a union!"),

Reply via email to