Refactored CSV parsing

This commit is contained in:
Luca 2025-11-14 16:29:19 +01:00
parent 110271b399
commit 25b5e3e7fc
7 changed files with 376 additions and 230 deletions

View file

@ -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![