fn from(window_duration: WindowDuration) -> Self {
        match window_duration {
            WindowDuration::Variable { months, negative } => Self {
                ty: ScalarValue::Utf8(Some("variable".into())),
                field1: ScalarValue::Int64(Some(months)),
                field2: ScalarValue::Boolean(Some(negative)),
            },
            WindowDuration::Fixed { nanoseconds } => Self {
                ty: ScalarValue::Utf8(Some("fixed".into())),
                field1: ScalarValue::Int64(Some(nanoseconds)),
                field2: ScalarValue::Boolean(None),
            },
        }
    }
// Turn a [`WindowDuration`] into a [`EncodedWindowDuration`]
// suitable for passing as a parameter to a datafusion parameter
Turn a [`WindowDuration`] into a [`EncodedWindowDuration`]
suitable for passing as a parameter to a datafusion parameter
Turn a [ ` WindowDuration ` ] into a [ ` EncodedWindowDuration ` ] suitable for passing as a parameter to a datafusion parameter
fn from(window_duration: WindowDuration) -> Self {
        match window_duration {
            WindowDuration::Variable { months, negative } => Self {
                ty: ScalarValue::Utf8(Some("variable".into())),
                field1: ScalarValue::Int64(Some(months)),
                field2: ScalarValue::Boolean(Some(negative)),
            },
            WindowDuration::Fixed { nanoseconds } => Self {
                ty: ScalarValue::Utf8(Some("fixed".into())),
                field1: ScalarValue::Int64(Some(nanoseconds)),
                field2: ScalarValue::Boolean(None),
            },
        }
    }
fn from ( window_duration : WindowDuration ) -> Self { match window_duration { WindowDuration :: Variable { months , negative } => Self { ty : ScalarValue :: Utf8 ( Some ( " " . into ( ) ) ) , field1 : ScalarValue :: Int64 ( Some ( months ) ) , field2 : ScalarValue :: Boolean ( Some ( negative ) ) , } , WindowDuration :: Fixed { nanoseconds } => Self { ty : ScalarValue :: Utf8 ( Some ( " " . into ( ) ) ) , field1 : ScalarValue :: Int64 ( Some ( nanoseconds ) ) , field2 : ScalarValue :: Boolean ( None ) , } , } }
Turn a [`WindowDuration`] into a [`EncodedWindowDuration`]
suitable for passing as a parameter to a datafusion parameter
Turn a [ ` WindowDuration ` ] into a [ ` EncodedWindowDuration ` ] suitable for passing as a parameter to a datafusion parameter
window_duration
WindowDuration
window_duration
WindowDuration