You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2022/06/16 02:48:55 UTC
[GitHub] [iotdb] Plutooooooo commented on a diff in pull request #6290: [IOTDB-3482] Add IT for UDF management in new Cluster
Plutooooooo commented on code in PR #6290:
URL: https://github.com/apache/iotdb/pull/6290#discussion_r898644070
##########
integration-test/src/test/java/org/apache/iotdb/db/it/udf/IoTDBUDFManagementIT.java:
##########
@@ -279,86 +253,58 @@ public void testDropFunction2() { // drop
@Test
public void testDropBuiltInFunction() throws SQLException { // drop
- try (Connection connection =
- DriverManager.getConnection(
- Config.IOTDB_URL_PREFIX + "127.0.0.1:6667/", "root", "root");
+ try (Connection connection = EnvFactory.getEnv().getConnection();
Statement statement = connection.createStatement()) {
try {
statement.execute("drop function abs");
fail();
} catch (SQLException throwable) {
- assertTrue(throwable.getMessage().contains("Built-in function"));
+ assertTrue(
+ throwable.getMessage().contains("Built-in function ABS can not be deregistered"));
}
- statement.execute("INSERT INTO root.vehicle.d1(time, s1) VALUES(1, -10.0)");
- ResultSet rs = statement.executeQuery("SELECT ABS(s1) FROM root.vehicle.d1");
- Assert.assertTrue(rs.next());
- Assert.assertEquals(1, rs.getLong(1));
- Assert.assertEquals(10.0F, rs.getFloat(2), 0.00001);
- Assert.assertFalse(rs.next());
Review Comment:
CI was not stable when calling insert yesterday, these are added back now.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: reviews-unsubscribe@iotdb.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org