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

Method table_exist

datafusion/core/src/execution/context/mod.rs:1952–1961  ·  view source on GitHub ↗

Return `true` if the specified table exists in the schema provider.

(&self, table_ref: impl Into<TableReference>)

Source from the content-addressed store, hash-verified

1950
1951 /// Return `true` if the specified table exists in the schema provider.
1952 pub fn table_exist(&self, table_ref: impl Into<TableReference>) -> Result<bool> {
1953 let table_ref: TableReference = table_ref.into();
1954 let table = table_ref.table();
1955 let table_ref = table_ref.clone();
1956 Ok(self
1957 .state
1958 .read()
1959 .schema_for_ref(table_ref)?
1960 .table_exist(table))
1961 }
1962
1963 /// Retrieves a [`DataFrame`] representing a table previously
1964 /// registered by calling the [`register_table`] function.

Callers 5

test_from_existingFunction · 0.45
create_external_tableMethod · 0.45
create_custom_tableFunction · 0.45
create_drop_tableFunction · 0.45

Calls 5

schema_for_refMethod · 0.80
readMethod · 0.80
intoMethod · 0.45
tableMethod · 0.45
cloneMethod · 0.45

Tested by 4

test_from_existingFunction · 0.36
create_custom_tableFunction · 0.36
create_drop_tableFunction · 0.36