pub fn is_constant(&self) -> bool {
        match self.func {
            AggregateFunc::MaxInt16
            | AggregateFunc::MaxInt32
            | AggregateFunc::MaxInt64
            | AggregateFunc::MaxFloat32
            | AggregateFunc::MaxFloat64
            | AggregateFunc::MaxBool
            | AggregateFunc::MaxString
            | AggregateFunc::MaxDate
            | AggregateFunc::MaxTimestamp
            | AggregateFunc::MaxTimestampTz
            | AggregateFunc::MinInt16
            | AggregateFunc::MinInt32
            | AggregateFunc::MinInt64
            | AggregateFunc::MinFloat32
            | AggregateFunc::MinFloat64
            | AggregateFunc::MinBool
            | AggregateFunc::MinString
            | AggregateFunc::MinDate
            | AggregateFunc::MinTimestamp
            | AggregateFunc::MinTimestampTz
            | AggregateFunc::Any
            | AggregateFunc::All
            | AggregateFunc::Dummy => self.expr.is_literal(),
            AggregateFunc::Count => self.expr.is_literal_null(),
            _ => self.expr.is_literal_err(),
        }
    }
/// Returns whether the expression has a constant result.
Returns whether the expression has a constant result.
Returns whether the expression has a constant result .
pub fn is_constant(&self) -> bool {
        match self.func {
            AggregateFunc::MaxInt16
            | AggregateFunc::MaxInt32
            | AggregateFunc::MaxInt64
            | AggregateFunc::MaxFloat32
            | AggregateFunc::MaxFloat64
            | AggregateFunc::MaxBool
            | AggregateFunc::MaxString
            | AggregateFunc::MaxDate
            | AggregateFunc::MaxTimestamp
            | AggregateFunc::MaxTimestampTz
            | AggregateFunc::MinInt16
            | AggregateFunc::MinInt32
            | AggregateFunc::MinInt64
            | AggregateFunc::MinFloat32
            | AggregateFunc::MinFloat64
            | AggregateFunc::MinBool
            | AggregateFunc::MinString
            | AggregateFunc::MinDate
            | AggregateFunc::MinTimestamp
            | AggregateFunc::MinTimestampTz
            | AggregateFunc::Any
            | AggregateFunc::All
            | AggregateFunc::Dummy => self.expr.is_literal(),
            AggregateFunc::Count => self.expr.is_literal_null(),
            _ => self.expr.is_literal_err(),
        }
    }
pub fn is_constant ( & self ) -> bool { match self . func { AggregateFunc :: MaxInt16 | AggregateFunc :: MaxInt32 | AggregateFunc :: MaxInt64 | AggregateFunc :: MaxFloat32 | AggregateFunc :: MaxFloat64 | AggregateFunc :: MaxBool | AggregateFunc :: MaxString | AggregateFunc :: MaxDate | AggregateFunc :: MaxTimestamp | AggregateFunc :: MaxTimestampTz | AggregateFunc :: MinInt16 | AggregateFunc :: MinInt32 | AggregateFunc :: MinInt64 | AggregateFunc :: MinFloat32 | AggregateFunc :: MinFloat64 | AggregateFunc :: MinBool | AggregateFunc :: MinString | AggregateFunc :: MinDate | AggregateFunc :: MinTimestamp | AggregateFunc :: MinTimestampTz | AggregateFunc :: Any | AggregateFunc :: All | AggregateFunc :: Dummy => self . expr . is_literal ( ) , AggregateFunc :: Count => self . expr . is_literal_null ( ) , _ => self . expr . is_literal_err ( ) , } }
Returns whether the expression has a constant result.
Returns whether the expression has a constant result .
&self
&self