Skip to content

Commit 0b3a054

Browse files
authored
minor: Add ARROW to CREATE EXTERNAL TABLE docs and add example of COMPRESSION TYPE (#7489)
* minor: Add ARROW to `CREATE EXTERNAL TABLE` docs and add example of `COMPRESSION TYPE` * rettier
1 parent 81d7f88 commit 0b3a054

File tree

1 file changed

+11
-1
lines changed
  • docs/source/user-guide/sql

1 file changed

+11
-1
lines changed

docs/source/user-guide/sql/ddl.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ LOCATION <literal>
7777
<key_value_list> := (<literal> <literal, <literal> <literal>, ...)
7878
```
7979

80-
`file_type` is one of `CSV`, `PARQUET`, `AVRO` or `JSON`
80+
`file_type` is one of `CSV`, `ARROW`, `PARQUET`, `AVRO` or `JSON`
8181

8282
`LOCATION <literal>` specifies the location to find the data. It can be
8383
a path to a file or directory of partitioned files locally or on an
@@ -102,6 +102,16 @@ WITH HEADER ROW
102102
LOCATION '/path/to/aggregate_simple.csv';
103103
```
104104

105+
It is also possible to use compressed files, such as `.csv.gz`:
106+
107+
```sql
108+
CREATE EXTERNAL TABLE test
109+
STORED AS CSV
110+
COMPRESSION TYPE GZIP
111+
WITH HEADER ROW
112+
LOCATION '/path/to/aggregate_simple.csv.gz';
113+
```
114+
105115
It is also possible to specify the schema manually.
106116

107117
```sql

0 commit comments

Comments
 (0)