@@ -8636,6 +8636,8 @@ pub enum CopyLegacyOption {
86368636 Bzip2 ,
86378637 /// CLEANPATH
86388638 CleanPath ,
8639+ /// COMPUPDATE [ PRESET | { ON | TRUE } | { OFF | FALSE } ]
8640+ CompUpdate { preset : bool , enabled : Option < bool > } ,
86398641 /// CSV ...
86408642 Csv ( Vec < CopyLegacyCsvOption > ) ,
86418643 /// DATEFORMAT \[ AS \] {'dateformat_string' | 'auto' }
@@ -8676,8 +8678,12 @@ pub enum CopyLegacyOption {
86768678 PartitionBy ( UnloadPartitionBy ) ,
86778679 /// REGION \[ AS \] 'aws-region' }
86788680 Region ( String ) ,
8681+ /// REMOVEQUOTES
8682+ RemoveQuotes ,
86798683 /// ROWGROUPSIZE \[ AS \] size \[ MB | GB \]
86808684 RowGroupSize ( FileSize ) ,
8685+ /// STATUPDATE [ { ON | TRUE } | { OFF | FALSE } ]
8686+ StatUpdate ( Option < bool > ) ,
86818687 /// TIMEFORMAT \[ AS \] {'timeformat_string' | 'auto' | 'epochsecs' | 'epochmillisecs' }
86828688 TimeFormat ( Option < String > ) ,
86838689 /// TRUNCATECOLUMNS
@@ -8704,6 +8710,22 @@ impl fmt::Display for CopyLegacyOption {
87048710 BlankAsNull => write ! ( f, "BLANKSASNULL" ) ,
87058711 Bzip2 => write ! ( f, "BZIP2" ) ,
87068712 CleanPath => write ! ( f, "CLEANPATH" ) ,
8713+ CompUpdate { preset, enabled } => {
8714+ write ! ( f, "COMPUPDATE" ) ?;
8715+ if * preset {
8716+ write ! ( f, " PRESET" )
8717+ } else {
8718+ write ! (
8719+ f,
8720+ "{}" ,
8721+ match * enabled {
8722+ Some ( true ) => " TRUE" ,
8723+ Some ( false ) => " FALSE" ,
8724+ _ => "" ,
8725+ }
8726+ )
8727+ }
8728+ }
87078729 Csv ( opts) => {
87088730 write ! ( f, "CSV" ) ?;
87098731 if !opts. is_empty ( ) {
@@ -8750,7 +8772,19 @@ impl fmt::Display for CopyLegacyOption {
87508772 Parquet => write ! ( f, "PARQUET" ) ,
87518773 PartitionBy ( p) => write ! ( f, "{p}" ) ,
87528774 Region ( region) => write ! ( f, "REGION '{}'" , value:: escape_single_quote_string( region) ) ,
8775+ RemoveQuotes => write ! ( f, "REMOVEQUOTES" ) ,
87538776 RowGroupSize ( file_size) => write ! ( f, "ROWGROUPSIZE {file_size}" ) ,
8777+ StatUpdate ( enabled) => {
8778+ write ! (
8779+ f,
8780+ "STATUPDATE{}" ,
8781+ match enabled {
8782+ Some ( true ) => " TRUE" ,
8783+ Some ( false ) => " FALSE" ,
8784+ _ => "" ,
8785+ }
8786+ )
8787+ }
87548788 TimeFormat ( fmt) => {
87558789 write ! ( f, "TIMEFORMAT" ) ?;
87568790 if let Some ( fmt) = fmt {
0 commit comments