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

Method resolve

datafusion/common/src/table_reference.rs:216–242  ·  view source on GitHub ↗

Given a default catalog and schema, ensure this table reference is fully resolved

(
        self,
        default_catalog: &str,
        default_schema: &str,
    )

Source from the content-addressed store, hash-verified

214 /// Given a default catalog and schema, ensure this table reference is fully
215 /// resolved
216 pub fn resolve(
217 self,
218 default_catalog: &str,
219 default_schema: &str,
220 ) -> ResolvedTableReference {
221 match self {
222 Self::Full {
223 catalog,
224 schema,
225 table,
226 } => ResolvedTableReference {
227 catalog,
228 schema,
229 table,
230 },
231 Self::Partial { schema, table } => ResolvedTableReference {
232 catalog: default_catalog.into(),
233 schema,
234 table,
235 },
236 Self::Bare { table } => ResolvedTableReference {
237 catalog: default_catalog.into(),
238 schema: default_schema.into(),
239 table,
240 },
241 }
242 }
243
244 /// Forms a string where the identifiers are quoted
245 ///

Callers 5

remote_catalogFunction · 0.45
resolve_table_refMethod · 0.45
webpack.config.jsFile · 0.45
compile_profile.pyFile · 0.45
mainFunction · 0.45

Calls 1

intoMethod · 0.45

Tested by

no test coverage detected