https://github.com/asg017/sqlite-parquet
https://github.com/asg017/sqlite-parquet
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/asg017/sqlite-parquet
- Owner: asg017
- Created: 2022-11-04T17:56:40.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-30T23:44:44.000Z (about 2 years ago)
- Last Synced: 2025-02-26T17:45:50.411Z (2 months ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 11
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sqlite-parquet
A work-in-progress SQLite extension for querying parquet files! Not meant to be widely shared.
Once it's ready, you'll be able to do things like:
```sql
.load ./parquet0create virtual table temp.taxi using parquet(filename="tests/data/taxi_2019_04.parquet");
select
vendor_id,
pickup_at,
dropoff_at,
total_amount
from temp.taxi
limit 5;/*
┌───────────┬─────────────────────────┬─────────────────────────┬──────────────────┐
│ vendor_id │ pickup_at │ dropoff_at │ total_amount │
├───────────┼─────────────────────────┼─────────────────────────┼──────────────────┤
│ 1 │ 2019-04-01 00:04:09.000 │ 2019-04-01 00:06:35.000 │ 8.80000019073486 │
│ 1 │ 2019-04-01 00:22:45.000 │ 2019-04-01 00:25:43.000 │ 8.30000019073486 │
│ 1 │ 2019-04-01 00:39:48.000 │ 2019-04-01 01:19:39.000 │ 47.75 │
│ 1 │ 2019-04-01 00:35:32.000 │ 2019-04-01 00:37:11.000 │ 7.30000019073486 │
│ 1 │ 2019-04-01 00:44:05.000 │ 2019-04-01 00:57:58.000 │ 23.1499996185303 │
└───────────┴─────────────────────────┴─────────────────────────┴──────────────────┘
*/select * from parquet_metadata('tests/data/taxi_2019_04.parquet');
select * from parquet_column_chunks('tests/data/taxi_2019_04.parquet') limit 10;
```