()
| 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> { |
nothing calls this directly
no test coverage detected
searching dependent graphs…