alamb commented on code in PR #9931:
URL: https://github.com/apache/arrow-datafusion/pull/9931#discussion_r1551783409
##########
docs/source/user-guide/sql/write_options.md:
##########
@@ -53,26 +53,18 @@ Finally, options can be passed when running a `COPY`
command.
```sql
COPY source_table
TO 'test/table_with_options'
-(format parquet,
-compression snappy,
-'compression::col1' 'zstd(5)',
-partition_by 'column3, column4'
+OPTIONS (
+ format parquet,
+ compression snappy,
+ 'compression::col1' 'zstd(5)',
+ partition_by 'column3, column4'
Review Comment:
that is an excellent point -- I fixed it in af55db8b6 (I also tested that it
works locally):
```sql
❯ create table source_table as values ('1','2','3','4');
0 row(s) fetched.
Elapsed 0.021 seconds.
❯ COPY source_table
TO 'test/table_with_options'
PARTITIONED BY (column3, column4)
OPTIONS (
format parquet,
compression snappy,
'compression::column1' 'zstd(5)',
)
;
+-------+
| count |
+-------+
| 1 |
+-------+
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]