samperson1997 commented on a change in pull request #1100:
URL: https://github.com/apache/incubator-iotdb/pull/1100#discussion_r417033967
##########
File path:
spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/WideConverter.scala
##########
@@ -92,7 +92,7 @@ object WideConverter extends Converter {
val in = new HDFSInput(f.getPath, conf)
val reader = new TsFileSequenceReader(in)
val tsFileMetaData = reader.readFileMetadata
- val devices = tsFileMetaData.getDeviceMetadataIndex.keySet()
+ val devices = tsFileMetaData.getMetadataIndex
Review comment:
Fixed
##########
File path:
spark-tsfile/src/main/scala/org/apache/iotdb/spark/tsfile/WideConverter.scala
##########
@@ -133,7 +133,7 @@ object WideConverter extends Converter {
} else { // Remove nonexistent schema according to the current file's
metadata.
// This may happen when queried TsFiles in the same folder do not have
the same schema.
- val devices = tsFileMetaData.getDeviceMetadataIndex.keySet()
+ val devices = tsFileMetaData.getMetadataIndex
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]