I'm attempting to copy out from a Snowflake table to a CSV on S3 using the "copy into" command.
I noticed that using the following parameters in my copy into statement leads to ALL fields in the entire CSV file being enclosed in double quotes.
file_format=(type=csv compression=none field_optionally_enclosed_by='"' empty_field_as_null=false null_if='' trim_space=true field_delimiter=',') header=true overwrite=true single=true;
Is this expected behavior for the field_optionally_enclosed_by option? I thought that just the fields containing commas in the value would be enclosed by "", but all fields in the full file are enclosed.
Is there another option to see the output that I want? I'd like just the fields containing a comma in the value to be enclosed, but the rest not enclosed.