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

Function copy_to_table_to_table

datafusion/sql/src/parser.rs:1813–1826  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1811
1812 #[test]
1813 fn copy_to_table_to_table() -> Result<(), DataFusionError> {
1814 // positive case
1815 let sql = "COPY foo TO bar STORED AS CSV";
1816 let expected = Statement::CopyTo(CopyToStatement {
1817 source: object_name("foo"),
1818 target: "bar".to_string(),
1819 partitioned_by: vec![],
1820 stored_as: Some("CSV".to_owned()),
1821 options: vec![],
1822 });
1823
1824 assert_eq!(verified_stmt(sql), expected);
1825 Ok(())
1826 }
1827
1828 #[test]
1829 fn skip_copy_into_snowflake() -> Result<(), DataFusionError> {

Callers

nothing calls this directly

Calls 3

CopyToClass · 0.85
object_nameFunction · 0.85
to_stringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…