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