AuroraLiu0823
AuroraLiu0823
Code Path:confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManagerMetrics.java Duplicated string literals make the process of refactoring error-prone, since you must be sure to update all occurrences. On the other hand, constants can be referenced from many...
Code Path:server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/AnalyzeVisitor.java Multiple catch blocks of the appropriate type should be used instead of catching a general exception, and then testing on the type.
Code Path:server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/ExpressionUtils.java switch statements are useful when there are many different cases depending on the value of the same expression. For just one or two cases however, the code will...