mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-23 11:12:51 +00:00
Refactored CSV parsing
This commit is contained in:
parent
110271b399
commit
25b5e3e7fc
7 changed files with 376 additions and 230 deletions
|
|
@ -17082,7 +17082,7 @@ fn parse_copy_options() {
|
|||
r#"COPY dst (c1, c2, c3) FROM 's3://redshift-downloads/tickit/category_pipe.txt' IAM_ROLE 'arn:aws:iam::123456789:role/role1' CSV IGNOREHEADER 1"#,
|
||||
);
|
||||
match copy {
|
||||
Statement::Copy { legacy_options, .. } => {
|
||||
Statement::Copy(Copy { legacy_options, .. }) => {
|
||||
assert_eq!(
|
||||
legacy_options,
|
||||
vec![
|
||||
|
|
@ -17102,7 +17102,7 @@ fn parse_copy_options() {
|
|||
r#"COPY dst (c1, c2, c3) FROM 's3://redshift-downloads/tickit/category_pipe.txt' IAM_ROLE DEFAULT CSV IGNOREHEADER 1"#,
|
||||
);
|
||||
match copy {
|
||||
Statement::Copy { legacy_options, .. } => {
|
||||
Statement::Copy(Copy { legacy_options, .. }) => {
|
||||
assert_eq!(
|
||||
legacy_options,
|
||||
vec![
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue