common_query::error

Function datafusion_status_code

source
pub fn datafusion_status_code<T: ErrorExt + 'static>(
    e: &DataFusionError,
    default_status: Option<StatusCode>,
) -> StatusCode
Expand description

Try to get the proper [StatusCode] of [`DataFusionError].