Skip to content

Commit df7e92a

Browse files
authored
Fix locale message typo (#17726)
1 parent 8afe556 commit df7e92a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/queryengine/plan/relational/function/tvf/PatternMatchTableFunction.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,17 @@ public TableFunctionAnalysis analyze(Map<String, Argument> arguments) throws UDF
111111
Double widthValue = (Double) ((ScalarArgument) arguments.get(WIDTH_PARAM)).getValue();
112112
Double heightValue = (Double) ((ScalarArgument) arguments.get(HEIGHT_PARAM)).getValue();
113113
if (smoothValue < 0) {
114-
throw new UDFException(QueryMessages.SMOOTH_MUST_BE_NON_NEGATIVE + smoothValue);
114+
throw new UDFException(String.format(QueryMessages.SMOOTH_MUST_BE_NON_NEGATIVE, smoothValue));
115115
}
116116
if (thresholdValue < 0) {
117-
throw new UDFException(QueryMessages.THRESHOLD_MUST_BE_NON_NEGATIVE + thresholdValue);
117+
throw new UDFException(
118+
String.format(QueryMessages.THRESHOLD_MUST_BE_NON_NEGATIVE, thresholdValue));
118119
}
119120
if (widthValue < 0) {
120-
throw new UDFException(QueryMessages.WIDTH_MUST_BE_NON_NEGATIVE + widthValue);
121+
throw new UDFException(String.format(QueryMessages.WIDTH_MUST_BE_NON_NEGATIVE, widthValue));
121122
}
122123
if (heightValue < 0) {
123-
throw new UDFException(QueryMessages.HEIGHT_MUST_BE_NON_NEGATIVE + heightValue);
124+
throw new UDFException(String.format(QueryMessages.HEIGHT_MUST_BE_NON_NEGATIVE, heightValue));
124125
}
125126

126127
// outputColumnSchema description

0 commit comments

Comments
 (0)