apache / apache/iotdb

[Bug] [version:2.0.7]使用C++ API时,如果SQL语句中第一个列类型是boolen类型则无法正确获取值,值为NULL

未关闭
#17,397 7 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
6.4k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
115

描述

### Search before asking

- [x] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.

### Version

2.0.7

### Describe the bug and provide the minimal reproduce step

使用C++ API时,如果SQL语句中第一个列类型是boolen类型则无法正确获取值,值为NULL
create storage group root.test;
insert into root.test(type_boolen) values(true);
insert into root.test(type_boolen) values(false);

使用C++ API执行以下语句并获取结果
select type_boolen,type_boolen from root.test;

### What did you expect to see?

true,true
false,false

### What did you see instead?

null,true
null,false

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

贡献指南

打开贡献指南

调研方向

首先针对两行布尔值行复现 issue 中的 C++ API 查询,然后跟踪当第一个选中的列为布尔值时结果列是如何解码的。将重复列的结果与预期的 true,true 和 false,false 值进行比较;当第一个布尔列不再返回为 null 时即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
cpp
领域
api, databases
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
冷清
描述清晰度
基本清楚
新手友好度
55/100

把新 issue 发到你的邮箱

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