pub struct Align {
pub timestamp: Option<Ident>,
pub timestamp_alias: Option<Ident>,
pub period: Expr,
pub origin: Option<Expr>,
pub output: Option<String>,
pub partition_by: Vec<ExprWithAlias>,
pub metrics: Vec<AlignMetric>,
}Expand description
ALIGN (...): time-series alignment of an input to a regular grid of periods. The output is the PARTITION BY
columns, then the METRICS, then the aligned timestamp column.
Fields§
§timestamp: Option<Ident>TIMESTAMP column: the input column to align (timestamp when not given).
timestamp_alias: Option<Ident>TIMESTAMP column AS name
period: ExprPERIOD interval
origin: Option<Expr>ORIGIN EPOCH or ORIGIN timestamp
output: Option<String>OUTPUT ..., kept as written.
partition_by: Vec<ExprWithAlias>§metrics: Vec<AlignMetric>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Align
impl<'de> Deserialize<'de> for Align
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Align
impl StructuralPartialEq for Align
Auto Trait Implementations§
impl Forget for Align
impl Freeze for Alignwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Ident>: Freeze,
*const Expr is !null: Freeze,
PhantomData<Expr>: Freeze,
*const DataType is !null: Freeze,
PhantomData<DataType>: Freeze,
*const Query is !null: Freeze,
PhantomData<Query>: Freeze,
PhantomData<CaseWhen>: Freeze,
PhantomData<StructField>: Freeze,
PhantomData<StructExprField>: Freeze,
*const Function is !null: Freeze,
PhantomData<Function>: Freeze,
PhantomData<(Ident, Expr)>: Freeze,
PhantomData<ExprWithAlias>: Freeze,
PhantomData<AlignMetric>: Freeze,
impl Move for Align
impl RefUnwindSafe for Align
impl Send for Align
impl Sync for Align
impl Unpin for Align
impl UnsafeUnpin for Alignwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Ident>: UnsafeUnpin,
*const Expr is !null: UnsafeUnpin,
PhantomData<Expr>: UnsafeUnpin,
*const DataType is !null: UnsafeUnpin,
PhantomData<DataType>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
PhantomData<CaseWhen>: UnsafeUnpin,
PhantomData<StructField>: UnsafeUnpin,
PhantomData<StructExprField>: UnsafeUnpin,
*const Function is !null: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
PhantomData<(Ident, Expr)>: UnsafeUnpin,
PhantomData<ExprWithAlias>: UnsafeUnpin,
PhantomData<AlignMetric>: UnsafeUnpin,
impl UnwindSafe for Alignwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<DataType>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
BoxRaw<Function>: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.