@@ -8239,6 +8239,8 @@ pub enum CopyLegacyOption {
82398239 Bzip2 ,
82408240 /// CLEANPATH
82418241 CleanPath ,
8242+ /// COMPUPDATE [ PRESET | { ON | TRUE } | { OFF | FALSE } ]
8243+ CompUpdate { preset : bool , enabled : Option < bool > } ,
82428244 /// CSV ...
82438245 Csv ( Vec < CopyLegacyCsvOption > ) ,
82448246 /// DATEFORMAT \[ AS \] {'dateformat_string' | 'auto' }
@@ -8279,8 +8281,12 @@ pub enum CopyLegacyOption {
82798281 PartitionBy ( UnloadPartitionBy ) ,
82808282 /// REGION \[ AS \] 'aws-region' }
82818283 Region ( String ) ,
8284+ /// REMOVEQUOTES
8285+ RemoveQuotes ,
82828286 /// ROWGROUPSIZE \[ AS \] size \[ MB | GB \]
82838287 RowGroupSize ( FileSize ) ,
8288+ /// STATUPDATE [ { ON | TRUE } | { OFF | FALSE } ]
8289+ StatUpdate ( Option < bool > ) ,
82848290 /// TIMEFORMAT \[ AS \] {'timeformat_string' | 'auto' | 'epochsecs' | 'epochmillisecs' }
82858291 TimeFormat ( Option < String > ) ,
82868292 /// TRUNCATECOLUMNS
@@ -8307,6 +8313,22 @@ impl fmt::Display for CopyLegacyOption {
83078313 BlankAsNull => write ! ( f, "BLANKSASNULL" ) ,
83088314 Bzip2 => write ! ( f, "BZIP2" ) ,
83098315 CleanPath => write ! ( f, "CLEANPATH" ) ,
8316+ CompUpdate { preset, enabled } => {
8317+ write ! ( f, "COMPUPDATE" ) ?;
8318+ if * preset {
8319+ write ! ( f, " PRESET" ) ?;
8320+ } else if let Some ( enabled) = enabled {
8321+ write ! (
8322+ f,
8323+ "{}" ,
8324+ match enabled {
8325+ true => " TRUE" ,
8326+ false => " FALSE" ,
8327+ }
8328+ ) ?;
8329+ }
8330+ Ok ( ( ) )
8331+ }
83108332 Csv ( opts) => {
83118333 write ! ( f, "CSV" ) ?;
83128334 if !opts. is_empty ( ) {
@@ -8353,7 +8375,19 @@ impl fmt::Display for CopyLegacyOption {
83538375 Parquet => write ! ( f, "PARQUET" ) ,
83548376 PartitionBy ( p) => write ! ( f, "{p}" ) ,
83558377 Region ( region) => write ! ( f, "REGION '{}'" , value:: escape_single_quote_string( region) ) ,
8378+ RemoveQuotes => write ! ( f, "REMOVEQUOTES" ) ,
83568379 RowGroupSize ( file_size) => write ! ( f, "ROWGROUPSIZE {file_size}" ) ,
8380+ StatUpdate ( enabled) => {
8381+ write ! (
8382+ f,
8383+ "STATUPDATE{}" ,
8384+ match enabled {
8385+ Some ( true ) => " TRUE" ,
8386+ Some ( false ) => " FALSE" ,
8387+ _ => "" ,
8388+ }
8389+ )
8390+ }
83578391 TimeFormat ( fmt) => {
83588392 write ! ( f, "TIMEFORMAT" ) ?;
83598393 if let Some ( fmt) = fmt {
0 commit comments