Skip to main content

InputError

Enum InputError 

Source
pub enum InputError {
    Io(Error),
    Parquet(ParquetError),
    UnsupportedScheme {
        scheme: String,
        url: String,
    },
    RemoteDisabled(String),
    Arrow(ArrowError),
    IncompatiblePartition {
        first: String,
        offender: String,
        detail: String,
    },
    NoParquetInputs {
        input: String,
    },
    RemotePrefixUnsupported {
        url: String,
    },
    ManifestRead {
        path: String,
        source: Error,
    },
    MissingListedInput {
        context: String,
        input: String,
    },
    GlobPattern {
        pattern: String,
        message: String,
    },
}
Expand description

Errors from opening or reading an InputSource.

Variants§

§

Io(Error)

Local I/O error.

§

Parquet(ParquetError)

Parquet error (footer parse, reader construction).

§

UnsupportedScheme

The input looks like a URL but uses a scheme we do not support.

Fields

§scheme: String

The unrecognized scheme.

§url: String

The full input string.

§

RemoteDisabled(String)

A remote URL was supplied but the crate was built without remote.

§

Arrow(ArrowError)

Arrow error surfaced while decoding record batches from a stream.

§

IncompatiblePartition

A partition of a multi-file input does not match the first partition (schema shape, geometry extension metadata, or CRS).

Fields

§first: String

Display name of the reference (first) partition.

§offender: String

Display name of the partition that failed validation.

§detail: String

What differs.

§

NoParquetInputs

A directory or glob input matched no .parquet files.

Fields

§input: String

The original input string (directory path or glob pattern).

§

RemotePrefixUnsupported

An http(s):// URL naming a prefix (“directory”). Generic HTTP has no listing API, so the objects must be named explicitly; s3:// and gs:// prefixes are listed natively.

Fields

§url: String

The rejected URL.

§

ManifestRead

The --files-from manifest itself could not be read.

Fields

§path: String

The manifest path as supplied.

§source: Error

The underlying I/O error.

§

MissingListedInput

An explicitly listed input (a --files-from manifest line or a Python input-list entry) does not exist as a local file. Listed entries are single files/objects only — no directory, glob, or prefix expansion.

Fields

§context: String

Where the entry came from (manifest line / list position).

§input: String

The offending entry.

§

GlobPattern

A glob input string is not a valid glob pattern.

Fields

§pattern: String

The pattern as supplied.

§message: String

The glob crate’s error message.

Trait Implementations§

Source§

impl Debug for InputError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for InputError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for InputError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<ArrowError> for InputError

Source§

fn from(source: ArrowError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for InputError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<InputError> for ConvertError

Source§

fn from(source: InputError) -> Self

Converts to this type from the input type.
Source§

impl From<ParquetError> for InputError

Source§

fn from(source: ParquetError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<G1, G2> Within<G2> for G1
where G2: Contains<G1>,

Source§

fn is_within(&self, b: &G2) -> bool