Inconsistent optional point ID type in scroll response

オープン
#243 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@Strawbang がすでに取り組んでいます。

2026年3月13日 から。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust
領域
api

調査の方向性

src/qdrant_client/points.rs の RetrievedPoint 定義から始め、そこにあるオプションの PointId フィールドを、リンク先の Python クライアントモデルおよび scroll レスポンスの型と比較してください。生成された Rust の型が API の契約を反映しているか、また unwrap が安全かを確認してください。オプションの ID の挙動が解決され、Rust クライアントと Python クライアントの表現が一致しているか、明確にドキュメント化されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Why is returned point ID for scroll an Option? Is it safe to unwrap?

Python client type does not have None variant:
https://github.com/qdrant/qdrant-client/blob/981117a506b549e9dcd51cd633d4a6162df3b05f/qdrant_client/async_qdrant_client.py#L1371
->
https://github.com/qdrant/qdrant-client/blob/981117a506b549e9dcd51cd633d4a6162df3b05f/qdrant_client/conversions/common_types.py#L96
->
https://github.com/qdrant/qdrant-client/blob/981117a506b549e9dcd51cd633d4a6162df3b05f/qdrant_client/http/models/models.py#L2219
->
https://github.com/qdrant/qdrant-client/blob/981117a506b549e9dcd51cd633d4a6162df3b05f/qdrant_client/http/models/models.py#L3472-L3475

ExtendedPointId = Union[
    StrictInt,
    StrictStr,
]

Meanwhile rust:
https://github.com/qdrant/rust-client/blob/9feb73ee7289c11d9bf0db8cf369e680d48d0643/src/qdrant_client/points.rs#L227

The next parts are autogenerated i think

    #[prost(message, repeated, tag = "2")]
    pub result: ::prost::alloc::vec::Vec<RetrievedPoint>,
pub struct RetrievedPoint {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<PointId>,
主要言語
Rust
スター
425
フォーク
89
平均マージ
2時間 48分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

qdrant/rust-client のほかの issue

qdrant/rust-client の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。