apache / apache/iotdb

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

Open
#17,397 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
6.4k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
115

Description

### 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!

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the C++ API query from the issue against the two boolean rows, then trace how result columns are decoded when the first selected column is boolean. Compare the duplicated-column result with the expected true,true and false,false values; done means the first boolean column is no longer returned as null.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.