This is an automated email from the ASF dual-hosted git repository.
jiangtian pushed a commit to branch force_ci/alter_column_datatype
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/force_ci/alter_column_datatype
by this push:
new 7fe66e15fa1 supplement test
7fe66e15fa1 is described below
commit 7fe66e15fa13474fbc4de54e5a0ea680c1d424ac
Author: Tian Jiang <[email protected]>
AuthorDate: Mon Jan 13 13:38:30 2025 +0800
supplement test
---
.../iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git
a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java
b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java
index 873e951d4af..029fc6653f4 100644
---
a/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java
+++
b/integration-test/src/test/java/org/apache/iotdb/relational/it/schema/IoTDBAlterColumnTypeIT.java
@@ -189,6 +189,16 @@ public class IoTDBAlterColumnTypeIT {
}
assertFalse(dataSet.hasNext());
+ if (newType.isNumeric()) {
+ dataSet =
+ session.executeQueryStatement(
+ "select avg(s1),sum(s1) from write_and_alter_column_type");
+ rec = dataSet.next();
+ assertEquals(1.5, rec.getFields().get(0).getDoubleV(), 0.001);
+ assertEquals(3.0, rec.getFields().get(1).getDoubleV(), 0.001);
+ assertFalse(dataSet.hasNext());
+ }
+
session.executeNonQueryStatement("DROP TABLE
write_and_alter_column_type");
}
}