This is an automated email from the ASF dual-hosted git repository.

rong pushed a commit to branch iotdb-1022-v2
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 3125c465c9a2e591a03e246a33f7a8f162d78acc
Author: SteveYurongSu <[email protected]>
AuthorDate: Fri May 14 20:51:36 2021 +0800

    fix IoTDBUDFManagementIT
---
 .../org/apache/iotdb/db/integration/IoTDBUDFManagementIT.java  | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git 
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBUDFManagementIT.java
 
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBUDFManagementIT.java
index f85e012..b970eaf 100644
--- 
a/server/src/test/java/org/apache/iotdb/db/integration/IoTDBUDFManagementIT.java
+++ 
b/server/src/test/java/org/apache/iotdb/db/integration/IoTDBUDFManagementIT.java
@@ -223,7 +223,10 @@ public class IoTDBUDFManagementIT {
       statement.execute("create function aVg as 
\"org.apache.iotdb.db.query.udf.example.Adder\"");
       fail();
     } catch (SQLException throwable) {
-      assertTrue(throwable.getMessage().contains("expecting ID"));
+      assertTrue(
+          throwable
+              .getMessage()
+              .contains("the given function name conflicts with the built-in 
function name"));
     }
   }
 
@@ -237,7 +240,10 @@ public class IoTDBUDFManagementIT {
           "create function MAX_VALUE as 
\"org.apache.iotdb.db.query.udf.example.Adder\"");
       fail();
     } catch (SQLException throwable) {
-      assertTrue(throwable.getMessage().contains("expecting ID"));
+      assertTrue(
+          throwable
+              .getMessage()
+              .contains("the given function name conflicts with the built-in 
function name"));
     }
   }
 

Reply via email to