[client-v2] Review hasNext() logic in `com.clickhouse.client.api.data_formats.internal.AbstractBinaryFormatReader`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
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 小时
- 30 天内合并 PR
- 36
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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
维护者通常 1 天内回复