MCPcopy Create free account
hub / github.com/apache/paimon-rust / temp_table_exist

Method temp_table_exist

crates/integrations/datafusion/src/catalog.rs:271–276  ·  view source on GitHub ↗

Returns whether a temp table with the given name exists in the specified database.

(&self, database: &str, table_name: &str)

Source from the content-addressed store, hash-verified

269
270 /// Returns whether a temp table with the given name exists in the specified database.
271 pub fn temp_table_exist(&self, database: &str, table_name: &str) -> bool {
272 let databases = self.temp_tables.read().unwrap_or_else(|e| e.into_inner());
273 databases
274 .get(database)
275 .is_some_and(|db| db.table_exist(table_name))
276 }
277}
278
279/// Represents a [`SchemaProvider`] for the Paimon [`Catalog`], managing

Callers

nothing calls this directly

Calls 3

table_existMethod · 0.80
readMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected