qiaojialin commented on a change in pull request #1060:
URL: https://github.com/apache/incubator-iotdb/pull/1060#discussion_r414947672
##########
File path:
hive-connector/src/test/java/org/apache/iotdb/hive/TsFileTestHelper.java
##########
@@ -61,40 +64,42 @@ public static void writeTsFile(String filePath) {
// add measurements into file schema (all with INT64 data type)
for (int i = 0; i < sensorNum; i++) {
+ MeasurementSchema measurementSchema = new MeasurementSchema("sensor_"
+ (i + 1),
+ TSDataType.INT64, TSEncoding.TS_2DIFF,
CompressionType.UNCOMPRESSED);
schema.registerTimeseries(new Path("device_1", "sensor_" + (i + 1)),
- new MeasurementSchema("sensor_" + (i + 1), TSDataType.INT64,
TSEncoding.TS_2DIFF,
- CompressionType.UNCOMPRESSED));
+ measurementSchema);
+ schemaList.add(measurementSchema);
}
// add measurements into TSFileWriter
TsFileWriter tsFileWriter = new TsFileWriter(file, schema);
// construct the row batch
- RowBatch rowBatch = schema.createRowBatch("device_1");
+ Tablet tablet = new Tablet("device_1", schemaList);
Review comment:
fixed
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]