use std::io;
use arrow::error::ArrowError;
use parquet::errors::ParquetError;
use thiserror::Error;
#[derive(Debug, Error)]
pub enum SortingParquetError {
#[error(transparent)]
ArrowError(#[from] ArrowError),
#[error(transparent)]
ParquetError(#[from] ParquetError),
#[error("No Sorting Columns Configured")]
NoSortingColumnsConfigured,
#[error("Writer is already closed")]
WriterClosed,
#[error(transparent)]
IoError(#[from] io::Error),
#[error("Unexpected index out of bounds during sorting")]
UnexpectedIndexOutOfBounds,
}