Skip to main content

analyze_mv_sources

Function analyze_mv_sources 

Source
pub fn analyze_mv_sources(mv_name: &str, source_tables: &[&str]) -> MvDefinition
Expand description

Analyzes a single MV to extract its source references.

This is a helper for parsing SQL queries to find referenced sources. In practice, this would integrate with the SQL parser to extract table references from FROM clauses.

§Arguments

  • mv_name - The MV name
  • source_tables - Tables referenced in the query

§Returns

An MvDefinition with the extracted source references.