pub struct Analyze {
pub table_name: Option<ObjectName>,
pub partitions: Option<Vec<Expr>>,
pub for_columns: bool,
pub columns: Vec<Ident>,
pub cache_metadata: bool,
pub noscan: bool,
pub compute_statistics: bool,
pub has_table_keyword: bool,
}Expand description
ANALYZE statement
Supported syntax varies by dialect:
- Hive:
ANALYZE TABLE t [PARTITION (...)] COMPUTE STATISTICS [NOSCAN] [FOR COLUMNS [col1, ...]] [CACHE METADATA] - PostgreSQL:
ANALYZE [VERBOSE] [t [(col1, ...)]]See https://www.postgresql.org/docs/current/sql-analyze.html - General:
ANALYZE [TABLE] t
Fields§
§table_name: Option<ObjectName>Name of the table to analyze. None for bare ANALYZE.
partitions: Option<Vec<Expr>>Optional partition expressions to restrict the analysis.
for_columns: booltrue when analyzing specific columns (Hive FOR COLUMNS syntax).
columns: Vec<Ident>Columns to analyze.
cache_metadata: boolWhether to cache metadata before analyzing.
noscan: boolWhether to skip scanning the table.
compute_statistics: boolWhether to compute statistics during analysis.
has_table_keyword: boolWhether the TABLE keyword was present.
Trait Implementations§
Source§impl Ord for Analyze
impl Ord for Analyze
Source§impl PartialOrd for Analyze
impl PartialOrd for Analyze
Source§impl VisitMut for Analyze
impl VisitMut for Analyze
Source§fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
fn visit<V>(&mut self, visitor: &mut V) -> ControlFlow<<V as VisitorMut>::Break>where
V: VisitorMut,
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for Analyze
impl StructuralPartialEq for Analyze
Auto Trait Implementations§
impl Freeze for Analyze
impl RefUnwindSafe for Analyze
impl Send for Analyze
impl Sync for Analyze
impl Unpin for Analyze
impl UnsafeUnpin for Analyze
impl UnwindSafe for Analyze
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more