This is an automated email from the ASF dual-hosted git repository.
jackietien pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 4e792002b28 fix replace function error message
4e792002b28 is described below
commit 4e792002b285bd0bd9d8386117c40df974a78afa
Author: Lin Xintao <[email protected]>
AuthorDate: Thu Oct 24 15:35:49 2024 +0800
fix replace function error message
---
.../db/queryengine/plan/relational/metadata/TableMetadataImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableMetadataImpl.java
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableMetadataImpl.java
index 7a366cf12c0..ea96580b5b6 100644
---
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableMetadataImpl.java
+++
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/TableMetadataImpl.java
@@ -213,7 +213,7 @@ public class TableMetadataImpl implements Metadata {
throw new SemanticException(
"Scalar function "
+ functionName.toLowerCase(Locale.ENGLISH)
- + " only supports text or string data type.");
+ + " only accepts two or three arguments and they must be text
or string data type.");
}
return STRING;
} else if (TableBuiltinScalarFunction.SUBSTRING