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

Class CopyTo

datafusion/expr/src/logical_plan/dml.rs:32–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30/// Operator that copies the contents of a database to file(s)
31#[derive(Clone)]
32pub struct CopyTo {
33 /// The relation that determines the tuples to write to the output file(s)
34 pub input: Arc<LogicalPlan>,
35 /// The location to write the file(s)
36 pub output_url: String,
37 /// Determines which, if any, columns should be used for hive-style partitioned writes
38 pub partition_by: Vec<String>,
39 /// File type trait
40 pub file_type: Arc<dyn FileType>,
41 /// SQL Options that can affect the formats
42 pub options: HashMap<String, String>,
43 /// The schema of the output (a single column "count")
44 pub output_schema: DFSchemaRef,
45}
46
47impl Debug for CopyTo {
48 fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result {

Callers 7

parse_copyMethod · 0.85
copy_to_table_to_tableFunction · 0.85
copy_to_query_to_tableFunction · 0.85
copy_to_optionsFunction · 0.85
copy_to_partitioned_byFunction · 0.85
try_from_logical_planMethod · 0.85

Calls

no outgoing calls

Tested by 5

copy_to_table_to_tableFunction · 0.68
copy_to_query_to_tableFunction · 0.68
copy_to_optionsFunction · 0.68
copy_to_partitioned_byFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…