This is an automated email from the ASF dual-hosted git repository. caogaofei pushed a commit to branch beyyes/debug-table in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit 754157726f06220530b87c24fb93fd3105126218 Author: Beyyes <[email protected]> AuthorDate: Wed May 8 16:56:55 2024 +0800 fix replace function error --- .../db/queryengine/plan/relational/metadata/TableMetadataImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 bfb06742b1b..d8f156c3439 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 @@ -148,9 +148,9 @@ public class TableMetadataImpl implements Metadata { return DOUBLE; } else if (BuiltinScalarFunction.REPLACE.getFunctionName().equalsIgnoreCase(functionName)) { - if (!isTwoTextType(argumentTypes) && isThreeTextType(argumentTypes)) { + if (!isTwoTextType(argumentTypes) && !isThreeTextType(argumentTypes)) { throw new SemanticException( - "Scalar function" + "Scalar function: " + functionName.toLowerCase(Locale.ENGLISH) + " only supports text data type."); }
