apache / apache/arrow-java

[C++][Java][Python][FlightRPC] Allow FlightInfo#Schema to be nullable for long-running queries

未关闭
#167 1 条评论 1 个 reaction 已指派 1 人 已被 @tdcmeehan 认领 在 GitHub 查看
主要语言
Java
星标
94
派生
152
平均合并
3 天 16 小时
30 天内合并 PR
11

描述

### Describe the enhancement requested

With apache/arrow#36155, implementations of Flight RPC may not return quickly via a newly added `pollFlightInfo` function. Sometimes, the system implementing this function may not know the output schema for some time--for example, after a lengthy queue time as elapsed, or after planning.

In proto3, fields may not be present, and it's a coding convention to require them [^1]. To support upcoming client integration work for `pollFlightInfo`, the `schema` field can be made optional so that it's not a requirement to populate the `FlightInfo`'s schema on the first `pollFlightInfo` request.

We can modify our client code to allow this field to be optional. This is already the case for the Go code.

Sub-issues:

- [x] apache/arrow#37553
- [ ] apache/arrow#37554
- [x] apache/arrow#37677
- [ ] ...

CC: @lidavidm

[^1]: https://protobuf.dev/programming-guides/field_presence/

### Component(s)

C++, Java, Python

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。