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

Method to_vec

datafusion/common/src/table_reference.rs:321–333  ·  view source on GitHub ↗

Decompose a [`TableReference`] to separate parts. The result vector contains at most three elements in the following sequence: ```no_rust [ , , table] ```

(&self)

Source from the content-addressed store, hash-verified

319 /// [<catalog>, <schema>, table]
320 /// ```
321 pub fn to_vec(&self) -> Vec<String> {
322 match self {
323 TableReference::Bare { table } => vec![table.to_string()],
324 TableReference::Partial { schema, table } => {
325 vec![schema.to_string(), table.to_string()]
326 }
327 TableReference::Full {
328 catalog,
329 schema,
330 table,
331 } => vec![catalog.to_string(), schema.to_string(), table.to_string()],
332 }
333 }
334}
335
336/// Parse a string into a TableReference, normalizing where appropriate

Callers 15

setup_encryptionFunction · 0.80
filters_to_predicateMethod · 0.80
write_file_with_indexFunction · 0.80
scanMethod · 0.80
wrap_keyFunction · 0.80
do_handshakeMethod · 0.80
create_record_batchFunction · 0.80
invoke_with_argsMethod · 0.80
reverse_exprMethod · 0.80

Calls

no outgoing calls

Tested by 15

try_newMethod · 0.64
test_last_value_agg_exprFunction · 0.64
build_tableFunction · 0.64
try_pushdown_sortMethod · 0.64
create_test_dictFunction · 0.64
column_indicesMethod · 0.64
test_filesMethod · 0.64
create_random_schemaFunction · 0.64