Return `true` if the specified table exists in the schema provider.
(&self, table_ref: impl Into<TableReference>)
| 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. |