You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/09/23 12:58:11 UTC

[GitHub] [incubator-iotdb] jixuan1989 commented on a change in pull request #1750: [Sonar] Fix Codesmell blocker and critical issue

jixuan1989 commented on a change in pull request #1750:
URL: https://github.com/apache/incubator-iotdb/pull/1750#discussion_r493557741



##########
File path: hive-connector/src/main/java/org/apache/iotdb/hive/TsFileDeserializer.java
##########
@@ -90,55 +91,55 @@ public Object deserialize(List<String> columnNames, List<TypeInfo> columnTypes,
             row.add(((BooleanWritable)data).get());
           }
           else {
-            throw new TsFileSerDeException("Unexpected data type: " + data.getClass().getName() + " for Date TypeInfo: " + type);
+            throw new TsFileSerDeException(UNEXPECTED_DATA_TYPE + data.getClass().getName() + FOR_DATE_TYPEINFO + type);

Review comment:
       String.format("Unexpected data type: %s for Date TypeInfo: %s", data.getClass().getName(), type)




----------------------------------------------------------------
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:
users@infra.apache.org