[c++ client] insertRecordsOfOneDevice写入的结果
- Ngôn ngữ chính
- Java
- Star
- 6.4k
- Fork
- 1.2k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 115
Mô tả
### Search before asking
- [X] I searched in the [issues](https://github.com/apache/iotdb/issues) and found nothing similar.
### Version
apache-iotdb-1.1.0-all-bin
### Describe the bug and provide the minimal reproduce step
std::vector times;
std::vector> measurementsList;
std::vector> typesList;
std::vector> valuesList;
string deviceId = "root.data.iHyperDB" + std::to_string(1);
std::vector measurement;
std::vector type;
std::vector value;
measurement.emplace_back("value");
measurement.emplace_back("quality");
type.emplace_back(TSDataType::FLOAT);
type.emplace_back(TSDataType::INT32);
times.emplace_back(111);
measurementsList.emplace_back(measurement);
typesList.emplace_back(type);
auto va = std::to_string(1.0);
char* temp = new char[va.size() + 1];
std::strcpy(temp, va.c_str());
value.emplace_back(temp);
va = std::to_string(292);
temp = new char[va.size() + 1];
std::strcpy(temp, va.c_str());
value.emplace_back(temp);
valuesList.emplace_back(value);
ses->insertRecordsOfOneDevice(deviceId, times, measurementsList, typesList, valuesList);
### What did you expect to see?
+-----------------------------+---------------------+-------------------------+---------------------------+
| Time|root.data.iHyperDB1.a|root.data.iHyperDB1.value|root.data.iHyperDB1.quality|
+-----------------------------+---------------------+-------------------------+---------------------------+
|1970-01-01T08:00:00.111+08:00| null| 1.0| 292|
+-----------------------------+---------------------+-------------------------+---------------------------+
### What did you see instead?
+-----------------------------+---------------------+-------------------------+---------------------------+
| Time|root.data.iHyperDB1.a|root.data.iHyperDB1.value|root.data.iHyperDB1.quality|
+-----------------------------+---------------------+-------------------------+---------------------------+
|1970-01-01T08:00:00.111+08:00| null| 6.409407E-10| 3291442|
+-----------------------------+---------------------+-------------------------+---------------------------+
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện ví dụ insertRecordsOfOneDevice được cung cấp trên apache-iotdb-1.1.0 và kiểm tra phần triển khai client C++ của entry point đó. So sánh các giá trị FLOAT và INT32 đã chèn với đầu ra truy vấn mong đợi; được coi là hoàn thành khi truy vấn trả về 1.0 và 292 thay vì các giá trị bị hỏng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- cpp
- Lĩnh vực
- api, database
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100