@@ -8210,6 +8210,8 @@ pub enum CopyLegacyOption {
82108210 Bzip2 ,
82118211 /// CLEANPATH
82128212 CleanPath ,
8213+ /// COMPUPDATE [ PRESET | { ON | TRUE } | { OFF | FALSE } ]
8214+ CompUpdate { preset : bool , enabled : Option < bool > } ,
82138215 /// CSV ...
82148216 Csv ( Vec < CopyLegacyCsvOption > ) ,
82158217 /// DATEFORMAT \[ AS \] {'dateformat_string' | 'auto' }
@@ -8250,8 +8252,12 @@ pub enum CopyLegacyOption {
82508252 PartitionBy ( UnloadPartitionBy ) ,
82518253 /// REGION \[ AS \] 'aws-region' }
82528254 Region ( String ) ,
8255+ /// REMOVEQUOTES
8256+ RemoveQuotes ,
82538257 /// ROWGROUPSIZE \[ AS \] size \[ MB | GB \]
82548258 RowGroupSize ( FileSize ) ,
8259+ /// STATUPDATE [ { ON | TRUE } | { OFF | FALSE } ]
8260+ StatUpdate ( Option < bool > ) ,
82558261 /// TIMEFORMAT \[ AS \] {'timeformat_string' | 'auto' | 'epochsecs' | 'epochmillisecs' }
82568262 TimeFormat ( Option < String > ) ,
82578263 /// TRUNCATECOLUMNS
@@ -8278,6 +8284,22 @@ impl fmt::Display for CopyLegacyOption {
82788284 BlankAsNull => write ! ( f, "BLANKSASNULL" ) ,
82798285 Bzip2 => write ! ( f, "BZIP2" ) ,
82808286 CleanPath => write ! ( f, "CLEANPATH" ) ,
8287+ CompUpdate { preset, enabled } => {
8288+ write ! ( f, "COMPUPDATE" ) ?;
8289+ if * preset {
8290+ write ! ( f, " PRESET" ) ?;
8291+ } else if let Some ( enabled) = enabled {
8292+ write ! (
8293+ f,
8294+ "{}" ,
8295+ match enabled {
8296+ true => " TRUE" ,
8297+ false => " FALSE" ,
8298+ }
8299+ ) ?;
8300+ }
8301+ Ok ( ( ) )
8302+ }
82818303 Csv ( opts) => {
82828304 write ! ( f, "CSV" ) ?;
82838305 if !opts. is_empty ( ) {
@@ -8324,7 +8346,19 @@ impl fmt::Display for CopyLegacyOption {
83248346 Parquet => write ! ( f, "PARQUET" ) ,
83258347 PartitionBy ( p) => write ! ( f, "{p}" ) ,
83268348 Region ( region) => write ! ( f, "REGION '{}'" , value:: escape_single_quote_string( region) ) ,
8349+ RemoveQuotes => write ! ( f, "REMOVEQUOTES" ) ,
83278350 RowGroupSize ( file_size) => write ! ( f, "ROWGROUPSIZE {file_size}" ) ,
8351+ StatUpdate ( enabled) => {
8352+ write ! (
8353+ f,
8354+ "STATUPDATE{}" ,
8355+ match enabled {
8356+ Some ( true ) => " TRUE" ,
8357+ Some ( false ) => " FALSE" ,
8358+ _ => "" ,
8359+ }
8360+ )
8361+ }
83288362 TimeFormat ( fmt) => {
83298363 write ! ( f, "TIMEFORMAT" ) ?;
83308364 if let Some ( fmt) = fmt {
0 commit comments