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: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
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