apache / apache/arrow-rs

Insufficient documentation to get a basic get_flight_info() working

Open
#7,049 0 comments 0 reactions 0 assignees View on GitHub
documentation enhancement
Dominant language
Rust
Stars
3.6k
Forks
1.3k
Avg merge
2d 18h
Merged PRs (30d)
169

Description

**Describe the bug**

Python has this [cookbook](https://arrow.apache.org/cookbook/py/flight.html). C++ has one too. There are many blog posts on this topic.

But I couldn't find one for Rust.

**To Reproduce**

Run the steps in the README here:

https://github.com/adsharma/ashdb/tree/in_memory_kv

It's a toy kv store backed by a hashmap. I get:

```
./target/debug/flight_sql_client --host localhost --port 50051 db-schemas %
Error: read flight data

Caused by:
0: collect data stream
1: Decode error: Error decoding root message: Type `i32` at position 1818585414 is unaligned.
```

**Expected behavior**

Successful listing of schemas.

Contributor guide

Open the contributing guide

Research direction

Start with the ashdb README on the in_memory_kv branch and reproduce the flight_sql_client get_flight_info and schema-listing steps. Compare the Rust guidance with the linked Python and C++ Flight cookbooks. Done means the Rust documentation provides a basic working get_flight_info example and the schema listing succeeds without the decoding error.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
documentation
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.