Crates.io | datafusion-odata |
lib.rs | datafusion-odata |
version | 43.0.0 |
source | src |
created_at | 2024-03-11 01:02:48.126621 |
updated_at | 2024-11-08 23:49:37.889556 |
description | OData protocol adapter for Apache Datafusion |
homepage | |
repository | https://github.com/kamu-data/datafusion-odata |
max_upload_size | |
id | 1169076 |
size | 471,879 |
This is an OData API adapter for Apache Datafusion SQL engine.
OData protocol is positioned as "The SQL of REST", but is a somewhat legacy protocol used by some older systems. We wouldn't recommend using it as an integration protocol for some new project, but this adapter is useful if you have to integrate your Datafusion app with some existing OData-focused system.
Start example:
RUST_LOG=debug cargo run --example simple_service
Query using xh:
Service root:
xh GET 'http://localhost:50051/'
Metadata:
xh GET 'http://localhost:50051/$metadata'
Query collection:
xh GET 'http://localhost:50051/tickers.spy?$select=offset,from_symbol,to_symbol,close&$top=5'
This code is super raw and experimental. Very far from prod-ready. Use at your own risk.
OData 3.0
atom
format in responses$metadata
resource$select
$orderby
$skip
$top
$filter
service/collection(id)
)