Skip to content

Apache DataFusion SQL Query Engine

minor: Add ARROW to `CREATE EXTERNAL TABLE` docs and add example of `COMPRESSION TYPE` (#7489)

Andrew Lamb0b3a0545e37c
diff --git a/docs/source/user-guide/sql/ddl.md b/docs/source/user-guide/sql/ddl.md
index 751159c305..54a9af6c23 100644
--- a/docs/source/user-guide/sql/ddl.md
+++ b/docs/source/user-guide/sql/ddl.md
@@ -77,7 +77,7 @@ LOCATION <literal>
<key_value_list> := (<literal> <literal, <literal> <literal>, ...)
```
-`file_type` is one of `CSV`, `PARQUET`, `AVRO` or `JSON`
+`file_type` is one of `CSV`, `ARROW`, `PARQUET`, `AVRO` or `JSON`
`LOCATION <literal>` specifies the location to find the data. It can be
a path to a file or directory of partitioned files locally or on an
@@ -102,6 +102,16 @@ WITH HEADER ROW
LOCATION '/path/to/aggregate_simple.csv';
```
+It is also possible to use compressed files, such as `.csv.gz`:
+
+```sql
+CREATE EXTERNAL TABLE test
+STORED AS CSV
+COMPRESSION TYPE GZIP
+WITH HEADER ROW
+LOCATION '/path/to/aggregate_simple.csv.gz';
+```
+
It is also possible to specify the schema manually.
```sql