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

Function copy_to_partitioned_by

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

Source from the content-addressed store, hash-verified

1935
1936 #[test]
1937 fn copy_to_partitioned_by() -> Result<(), DataFusionError> {
1938 let sql = "COPY foo TO bar STORED AS CSV PARTITIONED BY (a) OPTIONS ('row_group_size' '55')";
1939 let expected = Statement::CopyTo(CopyToStatement {
1940 source: object_name("foo"),
1941 target: "bar".to_string(),
1942 partitioned_by: vec!["a".to_string()],
1943 stored_as: Some("CSV".to_owned()),
1944 options: vec![(
1945 "row_group_size".to_string(),
1946 Value::SingleQuotedString("55".to_string()),
1947 )],
1948 });
1949 assert_eq!(verified_stmt(sql), expected);
1950 Ok(())
1951 }
1952
1953 #[test]
1954 fn copy_to_multi_options() -> 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…