[client-v2] Review hasNext() logic in `com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start with com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader#hasNext and the two failures reported in NativeFormatReaderDataSetTest, which exercise dataset reads. Trace how the readers check for end of stream and how repeated hasNext() calls affect the next operation. Done means reader checks are idempotent, the tests can read the expected rows, and no extra work is done for the next operation.
索引モデルが issue の本文から書いたものです。
説明
Description
Methods like com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader#hasNext should be idempotent.
Beside current readers may do too complex logic of checking end of stream
- make all reader idempotent method - idempotent
- add tests reading enough data from DB to verify work of the reader
- make sure no extra work is done for next operation.
Update:
Two failing tests:
[ERROR] Failures:
[ERROR] NativeFormatReaderDataSetTest>AbstractAccessorDataSetTest.testReadDataSet:118->AbstractBinaryReaderDataSetTest.readAndVerify:81 More rows than in the data set: 12 expected [true] but found [false]
[ERROR] NativeFormatReaderDataSetTest>AbstractAccessorDataSetTest.testReadDataSet:118->AbstractBinaryReaderDataSetTest.readAndVerify:81 More rows than in the data set: 17 expected [true] but found [false]
- 主要言語
- Java
- スター
- 1.6k
- フォーク
- 657
- 平均マージ
- 2日 6時間
- マージ済み PR(30日)
- 36
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClickHouse/clickhouse-java のほかの issue
-
api-diagnostics bug jdbc
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
ClickHouse/clickhouse-java#3464 ·
メンテナーはふだん 1 日以内に返信
-
tests
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-java#3452 ·
メンテナーはふだん 1 日以内に返信
-
bug jdbc performance queries sql-parser
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
ClickHouse/clickhouse-java#3451 ·
メンテナーはふだん 1 日以内に返信
-
bug jdbc legacy queries
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ClickHouse/clickhouse-java#3444 ·
メンテナーはふだん 1 日以内に返信
-
api-diagnostics bug client jdbc
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/clickhouse-java#3439 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ClickHouse/clickhouse-java の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 60/100
quelea-projection/Quelea#749 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
erkamyaman/rust-anything#963 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 76/100
-
Deferred
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Sanne/incus-spawn#2768 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
morluto/rea#15041 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信