[c++ client] insertRecordsOfOneDevice写入的结果
- 主要言語
- Java
- スター
- 6.4k
- フォーク
- 1.2k
- 平均マージ
- 1日 23時間
- マージ済み PR(30日)
- 115
説明
### 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!
コントリビューションガイド
調査の方向性
まず、提供された insertRecordsOfOneDevice の例を apache-iotdb-1.1.0 に対して再現し、そのエントリポイントの C++ クライアント実装を調べます。挿入された FLOAT 値と INT32 値を期待されるクエリ出力と比較します。完了とは、クエリが破損した値ではなく 1.0 と 292 を返すことです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- api, database
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100