Skip to content

Commit 08f50c4

Browse files
authored
Merge branch 'main' into fix-doc-123
2 parents 8be549f + 9e822e0 commit 08f50c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2292
-809
lines changed

.github/workflows/integration.yml

Lines changed: 60 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,58 +78,112 @@ jobs:
7878
run:
7979
shell: bash
8080
steps:
81+
- name: Monitor disk usage - Initial
82+
run: |
83+
echo "=== Initial Disk Usage ==="
84+
df -h /
85+
echo ""
86+
87+
- name: Remove unnecessary preinstalled software
88+
run: |
89+
echo "=== Cleaning up host disk space ==="
90+
echo "Disk space before cleanup:"
91+
df -h /
92+
93+
# Clean apt cache
94+
apt-get clean || true
95+
96+
# Remove GitHub Actions tool cache
97+
rm -rf /__t/* || true
98+
99+
# Remove large packages from host filesystem (mounted at /host/)
100+
rm -rf /host/usr/share/dotnet || true
101+
rm -rf /host/usr/local/lib/android || true
102+
rm -rf /host/usr/local/.ghcup || true
103+
rm -rf /host/opt/hostedtoolcache/CodeQL || true
104+
105+
echo ""
106+
echo "Disk space after cleanup:"
107+
df -h /
108+
echo ""
109+
81110
# This is necessary so that actions/checkout can find git
82111
- name: Export conda path
83112
run: echo "/opt/conda/envs/arrow/bin" >> $GITHUB_PATH
84113
# This is necessary so that Rust can find cargo
85114
- name: Export cargo path
86115
run: echo "/root/.cargo/bin" >> $GITHUB_PATH
87-
- name: Check rustup
88-
run: which rustup
89-
- name: Check cmake
90-
run: which cmake
116+
117+
# Checkout repos (using shallow clones with fetch-depth: 1)
91118
- name: Checkout Arrow
92119
uses: actions/checkout@v6
93120
with:
94121
repository: apache/arrow
95122
submodules: true
96-
fetch-depth: 0
123+
fetch-depth: 1
97124
- name: Checkout Arrow Rust
98125
uses: actions/checkout@v6
99126
with:
100127
path: rust
101128
submodules: true
102-
fetch-depth: 0
129+
fetch-depth: 1
103130
- name: Checkout Arrow .NET
104131
uses: actions/checkout@v6
105132
with:
106133
repository: apache/arrow-dotnet
107134
path: dotnet
135+
fetch-depth: 1
108136
- name: Checkout Arrow Go
109137
uses: actions/checkout@v6
110138
with:
111139
repository: apache/arrow-go
112140
path: go
141+
fetch-depth: 1
113142
- name: Checkout Arrow Java
114143
uses: actions/checkout@v6
115144
with:
116145
repository: apache/arrow-java
117146
path: java
147+
fetch-depth: 1
118148
- name: Checkout Arrow JavaScript
119149
uses: actions/checkout@v6
120150
with:
121151
repository: apache/arrow-js
122152
path: js
153+
fetch-depth: 1
123154
- name: Checkout Arrow nanoarrow
124155
uses: actions/checkout@v6
125156
with:
126157
repository: apache/arrow-nanoarrow
127158
path: nanoarrow
159+
fetch-depth: 1
160+
161+
- name: Monitor disk usage - After checkouts
162+
run: |
163+
echo "=== After Checkouts ==="
164+
df -h /
165+
echo ""
166+
128167
- name: Build
129168
run: conda run --no-capture-output ci/scripts/integration_arrow_build.sh $PWD /build
169+
170+
- name: Monitor disk usage - After build
171+
if: always()
172+
run: |
173+
echo "=== After Build ==="
174+
df -h /
175+
echo ""
176+
130177
- name: Run
131178
run: conda run --no-capture-output ci/scripts/integration_arrow.sh $PWD /build
132179

180+
- name: Monitor disk usage - After tests
181+
if: always()
182+
run: |
183+
echo "=== After Tests ==="
184+
df -h /
185+
echo ""
186+
133187
# test FFI against the C-Data interface exposed by pyarrow
134188
pyarrow-integration-test:
135189
name: Pyarrow C Data Interface

CHANGELOG-old.md

Lines changed: 167 additions & 0 deletions
Large diffs are not rendered by default.

CHANGELOG.md

Lines changed: 147 additions & 145 deletions
Large diffs are not rendered by default.

Cargo.toml

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ exclude = [
6868
]
6969

7070
[workspace.package]
71-
version = "57.1.0"
71+
version = "57.2.0"
7272
homepage = "https://github.com/apache/arrow-rs"
7373
repository = "https://github.com/apache/arrow-rs"
7474
authors = ["Apache Arrow <dev@arrow.apache.org>"]
@@ -85,26 +85,26 @@ edition = "2024"
8585
rust-version = "1.85"
8686

8787
[workspace.dependencies]
88-
arrow = { version = "57.1.0", path = "./arrow", default-features = false }
89-
arrow-arith = { version = "57.1.0", path = "./arrow-arith" }
90-
arrow-array = { version = "57.1.0", path = "./arrow-array" }
91-
arrow-buffer = { version = "57.1.0", path = "./arrow-buffer" }
92-
arrow-cast = { version = "57.1.0", path = "./arrow-cast" }
93-
arrow-csv = { version = "57.1.0", path = "./arrow-csv" }
94-
arrow-data = { version = "57.1.0", path = "./arrow-data" }
95-
arrow-ipc = { version = "57.1.0", path = "./arrow-ipc" }
96-
arrow-json = { version = "57.1.0", path = "./arrow-json" }
97-
arrow-ord = { version = "57.1.0", path = "./arrow-ord" }
98-
arrow-pyarrow = { version = "57.1.0", path = "./arrow-pyarrow" }
99-
arrow-row = { version = "57.1.0", path = "./arrow-row" }
100-
arrow-schema = { version = "57.1.0", path = "./arrow-schema" }
101-
arrow-select = { version = "57.1.0", path = "./arrow-select" }
102-
arrow-string = { version = "57.1.0", path = "./arrow-string" }
103-
parquet = { version = "57.1.0", path = "./parquet", default-features = false }
104-
parquet-geospatial = { version = "57.1.0", path = "./parquet-geospatial" }
105-
parquet-variant = { version = "57.1.0", path = "./parquet-variant" }
106-
parquet-variant-json = { version = "57.1.0", path = "./parquet-variant-json" }
107-
parquet-variant-compute = { version = "57.1.0", path = "./parquet-variant-compute" }
88+
arrow = { version = "57.2.0", path = "./arrow", default-features = false }
89+
arrow-arith = { version = "57.2.0", path = "./arrow-arith" }
90+
arrow-array = { version = "57.2.0", path = "./arrow-array" }
91+
arrow-buffer = { version = "57.2.0", path = "./arrow-buffer" }
92+
arrow-cast = { version = "57.2.0", path = "./arrow-cast" }
93+
arrow-csv = { version = "57.2.0", path = "./arrow-csv" }
94+
arrow-data = { version = "57.2.0", path = "./arrow-data" }
95+
arrow-ipc = { version = "57.2.0", path = "./arrow-ipc" }
96+
arrow-json = { version = "57.2.0", path = "./arrow-json" }
97+
arrow-ord = { version = "57.2.0", path = "./arrow-ord" }
98+
arrow-pyarrow = { version = "57.2.0", path = "./arrow-pyarrow" }
99+
arrow-row = { version = "57.2.0", path = "./arrow-row" }
100+
arrow-schema = { version = "57.2.0", path = "./arrow-schema" }
101+
arrow-select = { version = "57.2.0", path = "./arrow-select" }
102+
arrow-string = { version = "57.2.0", path = "./arrow-string" }
103+
parquet = { version = "57.2.0", path = "./parquet", default-features = false }
104+
parquet-geospatial = { version = "57.2.0", path = "./parquet-geospatial" }
105+
parquet-variant = { version = "57.2.0", path = "./parquet-variant" }
106+
parquet-variant-json = { version = "57.2.0", path = "./parquet-variant-json" }
107+
parquet-variant-compute = { version = "57.2.0", path = "./parquet-variant-compute" }
108108

109109
chrono = { version = "0.4.40", default-features = false, features = ["clock"] }
110110

arrow-arith/src/aggregate.rs

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ fn aggregate<T: ArrowNativeTypeOp, P: ArrowPrimitiveType<Native = T>, A: Numeric
332332

333333
/// Returns the minimum value in the boolean array.
334334
///
335+
/// # Example
335336
/// ```
336337
/// # use arrow_array::BooleanArray;
337338
/// # use arrow_arith::aggregate::min_boolean;
338-
///
339339
/// let a = BooleanArray::from(vec![Some(true), None, Some(false)]);
340340
/// assert_eq!(min_boolean(&a), Some(false))
341341
/// ```
@@ -390,10 +390,10 @@ pub fn min_boolean(array: &BooleanArray) -> Option<bool> {
390390

391391
/// Returns the maximum value in the boolean array
392392
///
393+
/// # Example
393394
/// ```
394395
/// # use arrow_array::BooleanArray;
395396
/// # use arrow_arith::aggregate::max_boolean;
396-
///
397397
/// let a = BooleanArray::from(vec![Some(true), None, Some(false)]);
398398
/// assert_eq!(max_boolean(&a), Some(true))
399399
/// ```
@@ -809,6 +809,15 @@ where
809809

810810
/// Returns the minimum value in the array, according to the natural order.
811811
/// For floating point arrays any NaN values are considered to be greater than any other non-null value
812+
///
813+
/// # Example
814+
/// ```rust
815+
/// # use arrow_array::Int32Array;
816+
/// # use arrow_arith::aggregate::min;
817+
/// let array = Int32Array::from(vec![8, 2, 4]);
818+
/// let result = min(&array);
819+
/// assert_eq!(result, Some(2));
820+
/// ```
812821
pub fn min<T: ArrowNumericType>(array: &PrimitiveArray<T>) -> Option<T::Native>
813822
where
814823
T::Native: PartialOrd,
@@ -818,6 +827,15 @@ where
818827

819828
/// Returns the maximum value in the array, according to the natural order.
820829
/// For floating point arrays any NaN values are considered to be greater than any other non-null value
830+
///
831+
/// # Example
832+
/// ```rust
833+
/// # use arrow_array::Int32Array;
834+
/// # use arrow_arith::aggregate::max;
835+
/// let array = Int32Array::from(vec![4, 8, 2]);
836+
/// let result = max(&array);
837+
/// assert_eq!(result, Some(8));
838+
/// ```
821839
pub fn max<T: ArrowNumericType>(array: &PrimitiveArray<T>) -> Option<T::Native>
822840
where
823841
T::Native: PartialOrd,

arrow-array/src/array/boolean_array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ impl BooleanArray {
286286
}
287287
}
288288

289+
impl super::private::Sealed for BooleanArray {}
290+
289291
impl Array for BooleanArray {
290292
fn as_any(&self) -> &dyn Any {
291293
self

arrow-array/src/array/byte_array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ impl<T: ByteArrayType> std::fmt::Debug for GenericByteArray<T> {
462462
}
463463
}
464464

465+
impl<T: ByteArrayType> super::private::Sealed for GenericByteArray<T> {}
466+
465467
impl<T: ByteArrayType> Array for GenericByteArray<T> {
466468
fn as_any(&self) -> &dyn Any {
467469
self

arrow-array/src/array/byte_view_array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,8 @@ impl<T: ByteViewType + ?Sized> Debug for GenericByteViewArray<T> {
854854
}
855855
}
856856

857+
impl<T: ByteViewType + ?Sized> super::private::Sealed for GenericByteViewArray<T> {}
858+
857859
impl<T: ByteViewType + ?Sized> Array for GenericByteViewArray<T> {
858860
fn as_any(&self) -> &dyn Any {
859861
self

arrow-array/src/array/dictionary_array.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,6 +697,8 @@ impl<'a, T: ArrowDictionaryKeyType> FromIterator<&'a str> for DictionaryArray<T>
697697
}
698698
}
699699

700+
impl<T: ArrowDictionaryKeyType> super::private::Sealed for DictionaryArray<T> {}
701+
700702
impl<T: ArrowDictionaryKeyType> Array for DictionaryArray<T> {
701703
fn as_any(&self) -> &dyn Any {
702704
self
@@ -856,6 +858,8 @@ impl<'a, K: ArrowDictionaryKeyType, V> TypedDictionaryArray<'a, K, V> {
856858
}
857859
}
858860

861+
impl<K: ArrowDictionaryKeyType, V: Sync> super::private::Sealed for TypedDictionaryArray<'_, K, V> {}
862+
859863
impl<K: ArrowDictionaryKeyType, V: Sync> Array for TypedDictionaryArray<'_, K, V> {
860864
fn as_any(&self) -> &dyn Any {
861865
self.dictionary

arrow-array/src/array/fixed_size_binary_array.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ impl std::fmt::Debug for FixedSizeBinaryArray {
602602
}
603603
}
604604

605+
impl super::private::Sealed for FixedSizeBinaryArray {}
606+
605607
impl Array for FixedSizeBinaryArray {
606608
fn as_any(&self) -> &dyn Any {
607609
self

0 commit comments

Comments
 (0)