feat: support to create parquet format external table (#1463)

* feat: support parquet format external table

* Update src/file-table-engine/src/error.rs

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>

---------

Co-authored-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
Weny Xu
2023-04-26 17:45:37 +09:00
committed by GitHub
parent fb9978e95d
commit a709a5c842
6 changed files with 208 additions and 35 deletions

View File

@@ -0,0 +1,29 @@
### various_type.parquet
Schema:
```
+-------------+-------------------------+-------------+
| column_name | data_type | is_nullable |
+-------------+-------------------------+-------------+
| c_int | Int64 | YES |
| c_float | Float64 | YES |
| c_string | Float64 | YES |
| c_bool | Boolean | YES |
| c_date | Date32 | YES |
| c_datetime | Timestamp(Second, None) | YES |
+-------------+-------------------------+-------------+
```
Data:
```
+-------+----------+----------+--------+------------+---------------------+
| c_int | c_float | c_string | c_bool | c_date | c_datetime |
+-------+----------+----------+--------+------------+---------------------+
| 1 | 1.1 | 1.11 | true | 1970-01-01 | 1970-01-01T00:00:00 |
| 2 | 2.2 | 2.22 | true | 2020-11-08 | 2020-11-08T01:00:00 |
| 3 | | 3.33 | true | 1969-12-31 | 1969-11-08T02:00:00 |
| 4 | 4.4 | | false | | |
| 5 | 6.6 | | false | 1990-01-01 | 1990-01-01T03:00:00 |
| 4 | 4000000 | | false | | |
| 4 | 0.000004 | | false | | |
+-------+----------+----------+--------+------------+---------------------+
```

Binary file not shown.