MCPcopy Create free account
hub / github.com/MaterializeInc/materialize / parse

Method parse

src/catalog/src/memory/objects.rs:1495–1504  ·  view source on GitHub ↗
(create_sql: &str)

Source from the content-addressed store, hash-verified

1493 .expect("replacement has target");
1494
1495 fn parse(create_sql: &str) -> mz_sql::ast::CreateMaterializedViewStatement<Raw> {
1496 let res = mz_sql::parse::parse(create_sql).unwrap_or_else(|e| {
1497 panic!("invalid create_sql persisted in catalog: {e}\n{create_sql}");
1498 });
1499 if let Statement::CreateMaterializedView(cmvs) = res.into_element().ast {
1500 cmvs
1501 } else {
1502 panic!("invalid MV create_sql persisted in catalog\n{create_sql}");
1503 }
1504 }
1505
1506 let old_stmt = parse(&self.create_sql);
1507 let rpl_stmt = parse(&replacement.create_sql);

Callers 15

get_cgroup_limitsFunction · 0.45
update_configurationMethod · 0.45
dataflowFunction · 0.45
file_locationFunction · 0.45
index_dataflow_structureFunction · 0.45
req_u64Function · 0.45
opt_u64Function · 0.45
opt_usizeFunction · 0.45
parse_usize_listFunction · 0.45

Calls 2

into_elementMethod · 0.80
parseFunction · 0.50

Tested by 6

index_over_small_shardFunction · 0.36
test_client_errorsFunction · 0.36
start_serverFunction · 0.36
test_debugFunction · 0.36
test_openFunction · 0.36
test_create_socketsFunction · 0.36