datafusion_common

Macro unwrap_or_internal_err

Source
macro_rules! unwrap_or_internal_err {
    ($Value: ident) => { ... };
}
Expand description

Unwrap an Option if possible. Otherwise return an DataFusionError::Internal. In normal usage of DataFusion the unwrap should always succeed.

Example: let values = unwrap_or_internal_err!(values)