This is an automated email from the ASF dual-hosted git repository. caogaofei pushed a commit to branch ty/TableModelGrammar in repository https://gitbox.apache.org/repos/asf/iotdb.git
commit c4da1776e57c9ba99975006741fb4f89b68c58b9 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 4b4dfcad85f..70e75e63719 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 @@ -129,9 +129,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."); }
