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

Method record_sql_impl_ids

src/sql/src/plan/statement.rs:583–588  ·  view source on GitHub ↗

Records resolved IDs from a SQL-implemented expression body (e.g. a SHOW command's inner query or an EXPLAIN ANALYZE query) into the accumulator checked by `restrict_to_user_objects`. These are kept separate from the statement's main `resolved_ids` because they are implementation details, not real dependencies.

(&self, ids: &ResolvedIds)

Source from the content-addressed store, hash-verified

581 /// statement's main `resolved_ids` because they are implementation details,
582 /// not real dependencies.
583 pub(crate) fn record_sql_impl_ids(&self, ids: &ResolvedIds) {
584 self.sql_impl_resolved_ids
585 .lock()
586 .expect("planning is single-threaded")
587 .extend_from(ids);
588 }
589
590 pub fn allocate_full_name(&self, name: PartialItemName) -> Result<FullItemName, PlanError> {
591 let (database, schema): (RawDatabaseSpecifier, String) = match (name.database, name.schema)

Callers 3

show_columnsFunction · 0.80

Calls 3

extend_fromMethod · 0.80
expectMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected