Skip to content

Commit

Permalink
minor: Add ARROW to CREATE EXTERNAL TABLE docs and add example of `…
Browse files Browse the repository at this point in the history
…COMPRESSION TYPE` (#7489)

* minor: Add ARROW to `CREATE EXTERNAL TABLE` docs and add example of `COMPRESSION TYPE`

* rettier
  • Loading branch information
alamb committed Sep 7, 2023
1 parent 81d7f88 commit 0b3a054
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/source/user-guide/sql/ddl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 0b3a054

Please sign in to comment.