Skip to content

Two lines of CI failed recently #5688

@majin1102

Description

@majin1102
  1. cargo build-no-lock error due to arrow version compatibility issue:
error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/bfloat16.rs:103:24
    |
103 | impl ArrayAccessor for &BFloat16Array {
    |                        ^^^^^^^^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
    = note: required for `&BFloat16Array` to implement `arrow_array::array::private::Sealed`
    = note: required for `&BFloat16Array` to implement `arrow_array::Array`
note: required by a bound in `ArrayAccessor`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:586:26
    |
586 | pub trait ArrayAccessor: Array {
    |                          ^^^^^ required by this bound in `ArrayAccessor`

error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/bfloat16.rs:115:16
    |
115 | impl Array for BFloat16Array {
    |                ^^^^^^^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array`
    = note: `Array` is a "sealed trait", because to implement it you also need to implement `arrow_array::array::private::Sealed`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it
    = help: the following types implement the trait:
              arrow_array::BooleanArray
              arrow_array::GenericByteArray<T>
              arrow_array::DictionaryArray<T>
              arrow_array::TypedDictionaryArray<'_, K, V>
              arrow_array::FixedSizeBinaryArray
              arrow_array::FixedSizeListArray
              arrow_array::GenericListArray<OffsetSize>
              arrow_array::MapArray
            and 10 others

error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/bfloat16.rs:293:35
    |
293 | impl FloatArray<BFloat16Type> for BFloat16Array {
    |                                   ^^^^^^^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
    = note: required for `BFloat16Array` to implement `arrow_array::Array`
note: required by a bound in `floats::FloatArray`
   --> rust/lance-arrow/src/floats.rs:184:5
    |
183 | pub trait FloatArray<T: ArrowFloatType + ?Sized>:
    |           ---------- required by a bound in this trait
184 |     Array + Clone + From<Vec<T::Native>> + 'static
    |     ^^^^^ required by this bound in `FloatArray`

error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/floats.rs:146:22
    |
146 |     type ArrayType = BFloat16Array;
    |                      ^^^^^^^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
    = note: required for `<BFloat16Type as floats::ArrowFloatType>::ArrayType` to implement `arrow_array::Array`
note: required for `<BFloat16Type as floats::ArrowFloatType>::ArrayType` to implement `floats::FloatArray<BFloat16Type>`
   --> rust/lance-arrow/src/floats.rs:183:11
    |
183 | pub trait FloatArray<T: ArrowFloatType + ?Sized>:
    |           ^^^^^^^^^^
note: required by a bound in `floats::ArrowFloatType::ArrayType`
   --> rust/lance-arrow/src/floats.rs:94:21
    |
 94 |     type ArrayType: FloatArray<Self>;
    |                     ^^^^^^^^^^^^^^^^ required by this bound in `ArrowFloatType::ArrayType`

error[E0277]: the trait bound `JsonArray: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/json.rs:158:16
    |
158 | impl Array for JsonArray {
    |                ^^^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `JsonArray`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array`
    = note: `Array` is a "sealed trait", because to implement it you also need to implement `arrow_array::array::private::Sealed`, which is not accessible; this is usually done to force you to use one of the provided types that already implement it
    = help: the following types implement the trait:
              arrow_array::BooleanArray
              arrow_array::GenericByteArray<T>
              arrow_array::DictionaryArray<T>
              arrow_array::TypedDictionaryArray<'_, K, V>
              arrow_array::FixedSizeBinaryArray
              arrow_array::FixedSizeListArray
              arrow_array::GenericListArray<OffsetSize>
              arrow_array::MapArray
            and 10 others

error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/bfloat16.rs:81:22
    |
 81 |             i < self.len(),
    |                      ^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array::len`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array::len`
...
165 |     fn len(&self) -> usize;
    |        --- required by a bound in this associated function

error[E0277]: the trait bound `BFloat16Array: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/bfloat16.rs:84:18
    |
 84 |             self.len()
    |                  ^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `BFloat16Array`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array::len`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array::len`
...
165 |     fn len(&self) -> usize;
    |        --- required by a bound in this associated function

   Compiling toml_datetime v0.7.5+spec-1.1.0
error[E0277]: the trait bound `JsonArray: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/json.rs:143:26
    |
143 |         for i in 0..self.len() {
    |                          ^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `JsonArray`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array::len`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array::len`
...
165 |     fn len(&self) -> usize;
    |        --- required by a bound in this associated function

error[E0277]: the trait bound `JsonArray: arrow_array::array::private::Sealed` is not satisfied
   --> rust/lance-arrow/src/json.rs:144:21
    |
144 |             if self.is_null(i) {
    |                     ^^^^^^^ the trait `arrow_array::array::private::Sealed` is not implemented for `JsonArray`
    |
    = help: the following other types implement trait `arrow_array::array::private::Sealed`:
              &T
              Arc<(dyn arrow_array::Array + 'static)>
              BooleanArray
              DictionaryArray<T>
              FixedSizeBinaryArray
              FixedSizeListArray
              GenericByteArray<T>
              GenericByteViewArray<T>
            and 10 others
note: required by a bound in `arrow_array::Array::is_null`
   --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/arrow-array-57.2.0/src/array/mod.rs:92:50
    |
 92 | pub trait Array: std::fmt::Debug + Send + Sync + private::Sealed {
    |                                                  ^^^^^^^^^^^^^^^ required by this bound in `Array::is_null`
...
260 |     fn is_null(&self, index: usize) -> bool {
    |        ------- required by a bound in this associated function

   Compiling prost-build v0.14.3
For more information about this error, try `rustc --explain E0277`.
error: could not compile `lance-arrow` (lib) due to 9 previous errors
warning: build failed, waiting for other jobs to finish...
Error: Process completed with exit code 101.
  1. Java CI space not enough
Error:  Failed to execute goal org.questdb:rust-maven-plugin:1.1.1:build (lance-jni) on project lance-core: Failed to copy /home/runner/work/lance/lance/java/target/rust-maven-plugin/lance-jni/debug/liblance_jni.so to /home/runner/work/lance/lance/java/target/classes/nativelib/linux-x86-64:No space left on device -> [Help 1]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions