Skip to content

Commit 33e9c34

Browse files
committed
Remove OBJECT data type in cpp.
1 parent 83ac392 commit 33e9c34

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

iotdb-client/client-cpp/src/test/cpp/sessionRelationalIT.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,7 @@ TEST_CASE("Test RelationalTabletTsblockRead", "[testRelationalTabletTsblockRead]
159159
"field7 TIMESTAMP field,"
160160
"field8 DATE field,"
161161
"field9 BLOB field,"
162-
"field10 STRING field,"
163-
"field11 OBJECT field)");
162+
"field10 STRING field");
164163

165164
vector<pair<string, TSDataType::TSDataType>> schemaList;
166165
schemaList.push_back(make_pair("field1", TSDataType::BOOLEAN));
@@ -173,9 +172,8 @@ TEST_CASE("Test RelationalTabletTsblockRead", "[testRelationalTabletTsblockRead]
173172
schemaList.push_back(make_pair("field8", TSDataType::DATE));
174173
schemaList.push_back(make_pair("field9", TSDataType::BLOB));
175174
schemaList.push_back(make_pair("field10", TSDataType::STRING));
176-
schemaList.push_back(make_pair("field11", TSDataType::OBJECT));
177175

178-
vector<ColumnCategory> columnTypes(11, ColumnCategory::FIELD);
176+
vector<ColumnCategory> columnTypes(10, ColumnCategory::FIELD);
179177

180178
int64_t timestamp = 0;
181179
int maxRowNumber = 50000;
@@ -194,9 +192,6 @@ TEST_CASE("Test RelationalTabletTsblockRead", "[testRelationalTabletTsblockRead]
194192
tablet.addValue(7, rowIndex, boost::gregorian::date(2025, 5, 15));
195193
tablet.addValue(8, rowIndex, "blob_" + to_string(row));
196194
tablet.addValue(9, rowIndex, "string_" + to_string(row));
197-
vector<uint8_t> rawData = {0x01, 0x02, 0x03, 0x04};
198-
// always non-null
199-
tablet.addValue(10, rowIndex, true, 0, rawData);
200195

201196
if (row % 2 == 0) {
202197
for (int col = 0; col <= 9; col++) {
@@ -232,7 +227,6 @@ TEST_CASE("Test RelationalTabletTsblockRead", "[testRelationalTabletTsblockRead]
232227
REQUIRE_FALSE(dataIter.getDateByIndex(9).is_initialized());
233228
REQUIRE_FALSE(dataIter.getStringByIndex(10).is_initialized());
234229
REQUIRE_FALSE(dataIter.getStringByIndex(11).is_initialized());
235-
REQUIRE_FALSE(!dataIter.getStringByIndex(12).is_initialized());
236230
} else {
237231
REQUIRE(dataIter.getLongByIndex(1).value() == timestamp + rowNum);
238232
REQUIRE(dataIter.getBooleanByIndex(2).value() == (rowNum % 2 == 0));
@@ -245,8 +239,6 @@ TEST_CASE("Test RelationalTabletTsblockRead", "[testRelationalTabletTsblockRead]
245239
REQUIRE(dataIter.getDateByIndex(9).value() == boost::gregorian::date(2025, 5, 15));
246240
REQUIRE(dataIter.getStringByIndex(10).value() == "blob_" + to_string(rowNum));
247241
REQUIRE(dataIter.getStringByIndex(11).value() == "string_" + to_string(rowNum));
248-
// [isEOF (1 byte)] + [offset (8 bytes)] + [content (4 bytes)]
249-
REQUIRE(dataIter.getStringByIndex(12).value() != "");
250242
}
251243
rowNum++;
252244
}

0 commit comments

Comments
 (0)