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

Function copy_to_options

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

Source from the content-addressed store, hash-verified

1918
1919 #[test]
1920 fn copy_to_options() -> Result<(), DataFusionError> {
1921 let sql = "COPY foo TO bar STORED AS CSV OPTIONS ('row_group_size' '55')";
1922 let expected = Statement::CopyTo(CopyToStatement {
1923 source: object_name("foo"),
1924 target: "bar".to_string(),
1925 partitioned_by: vec![],
1926 stored_as: Some("CSV".to_owned()),
1927 options: vec![(
1928 "row_group_size".to_string(),
1929 Value::SingleQuotedString("55".to_string()),
1930 )],
1931 });
1932 assert_eq!(verified_stmt(sql), expected);
1933 Ok(())
1934 }
1935
1936 #[test]
1937 fn copy_to_partitioned_by() -> 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…