From 0b3a0545e37c42a1856fd4545850a72938f825a6 Mon Sep 17 00:00:00 2001 From: Andrew Lamb Date: Thu, 7 Sep 2023 12:54:28 -0400 Subject: [PATCH] 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 --- docs/source/user-guide/sql/ddl.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/source/user-guide/sql/ddl.md b/docs/source/user-guide/sql/ddl.md index 751159c305fc..54a9af6c23c2 100644 --- a/docs/source/user-guide/sql/ddl.md +++ b/docs/source/user-guide/sql/ddl.md @@ -77,7 +77,7 @@ LOCATION := ( , ...) ``` -`file_type` is one of `CSV`, `PARQUET`, `AVRO` or `JSON` +`file_type` is one of `CSV`, `ARROW`, `PARQUET`, `AVRO` or `JSON` `LOCATION ` 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