pub enum Error {
NoInputs,
OutputIsInput(PathBuf),
Incompatible {
path: PathBuf,
first: PathBuf,
what: &'static str,
},
Io {
path: PathBuf,
source: Error,
},
Parquet {
path: PathBuf,
source: ParquetError,
},
RowGroup {
path: PathBuf,
row_group: usize,
row_groups: usize,
},
Pool(String),
Option(String),
Footer {
path: PathBuf,
reason: String,
},
}Expand description
What concat and the footer checks can fail with.
Variants§
NoInputs
No input files were given.
OutputIsInput(PathBuf)
The output path is one of the inputs.
Incompatible
An input’s Parquet schema, key-value metadata or column orders differ from the first input’s.
Fields
Io
A file could not be opened, read or written.
Parquet
A file’s Parquet metadata could not be read, or the output could not be written.
RowGroup
A row group asked for that the file does not have.
Fields
Pool(String)
The thread pool for a write could not be made.
Option(String)
A write’s options do not fit its data: a column to encode that the schema does not have, or an encoding its type does not take.
The footer parquet-rs wrote was not laid out as expected, so its column orders
were not rewritten (see footer::restore_column_orders).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
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
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more