MCPcopy Create free account
hub / github.com/apache/datafusion / has_table

Method has_table

datafusion/sql/src/statement.rs:2665–2673  ·  view source on GitHub ↗

Return true if there is a table provider available for "schema.table"

(&self, schema: &str, table: &str)

Source from the content-addressed store, hash-verified

2663
2664 /// Return true if there is a table provider available for "schema.table"
2665 fn has_table(&self, schema: &str, table: &str) -> bool {
2666 let tables_reference = TableReference::Partial {
2667 schema: schema.into(),
2668 table: table.into(),
2669 };
2670 self.context_provider
2671 .get_table_source(tables_reference)
2672 .is_ok()
2673 }
2674
2675 fn validate_transaction_kind(
2676 &self,

Callers 4

show_tables_to_planMethod · 0.80
show_variable_to_planMethod · 0.80
show_columns_to_planMethod · 0.80

Calls 3

intoMethod · 0.45
is_okMethod · 0.45
get_table_sourceMethod · 0.45

Tested by

no test coverage detected