Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
e6aee9a
init
jt2594838 Jan 7, 2025
e58e94d
adapt write and add tests
jt2594838 Jan 7, 2025
c85cfa8
add test case
jt2594838 Jan 10, 2025
831a3df
disable altering from TEXT to STRING & add aggregation support
jt2594838 Jan 13, 2025
7fe66e1
supplement test
jt2594838 Jan 13, 2025
e0c37ac
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Jan 13, 2025
8faf343
add more test
jt2594838 Jan 13, 2025
7eff395
add concurrent test
jt2594838 Jan 13, 2025
d07c818
fix check data type and add load IT
jt2594838 Jan 14, 2025
3d76803
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Jan 24, 2025
d25898b
Add license
jt2594838 Jan 24, 2025
d8a45ea
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Jan 25, 2025
e372d29
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 6, 2025
c3f5117
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 6, 2025
d2c68ea
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 8, 2025
cba0247
fix ut
jt2594838 Feb 11, 2025
37893d3
fix ut
jt2594838 Feb 11, 2025
c3b2232
fix test
jt2594838 Feb 13, 2025
ca779ec
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 13, 2025
d2381eb
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 13, 2025
f3a7479
move update mod file existence inside
jt2594838 Feb 10, 2025
8edeb13
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 14, 2025
01c5eb9
add print for test failure
jt2594838 Feb 17, 2025
550e9fb
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 18, 2025
e9b5089
fix it
jt2594838 Feb 19, 2025
aeeec75
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Feb 26, 2025
5575a3d
fix it
jt2594838 Mar 3, 2025
f677dda
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 3, 2025
ac36f62
fix deleteColumn in TVList
jt2594838 Mar 4, 2025
bf40a70
fix delete memoryBinaryChunkSize
jt2594838 Mar 4, 2025
a203acf
fix partial insert
jt2594838 Mar 4, 2025
78e38ef
fix test
jt2594838 Mar 4, 2025
f99f6a5
add debug print
jt2594838 Mar 5, 2025
3fe1ab4
fix partial insert
jt2594838 Mar 5, 2025
07b82e9
fix insertion retry after detecting incompatible type
jt2594838 Mar 6, 2025
6a78cf1
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 6, 2025
bec6efa
spotless
jt2594838 Mar 6, 2025
420fc57
fix data type check in memtable
jt2594838 Mar 7, 2025
9bb7889
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 7, 2025
5f081de
compact compatibility with alter column datatype (#15010)
zhujt20 Mar 13, 2025
90e3cb1
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 20, 2025
d871dec
fix missing check in procedure manager
jt2594838 Mar 20, 2025
ea10503
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 24, 2025
22e99f1
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 25, 2025
e6e392c
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Mar 28, 2025
32ed833
fix tests
jt2594838 Apr 14, 2025
2b69da1
fix tests
jt2594838 Apr 16, 2025
4ad3215
Merge branch 'master' into force_ci/alter_column_datatype
jt2594838 Apr 18, 2025
674ae78
fix a problem about data type of field was displayed wrong.
zerolbsony Jul 14, 2025
9bee12d
delete unuseful code.
zerolbsony Jul 14, 2025
b101e3f
The logic that the data type of alignedChunkMetadata is different of …
zerolbsony Jul 14, 2025
c593fac
To Aligned Series:
zerolbsony Jul 15, 2025
a776c19
Adjust the chunk object need be merged statistics.
zerolbsony Jul 16, 2025
72fb3a4
Because this problem is not exist as below:
zerolbsony Jul 16, 2025
c9d2e1a
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Jul 21, 2025
796d5e3
Fix some problems after merge code from master branch.
zerolbsony Jul 21, 2025
724457c
Resolve the problem can not find symbol that variable ColumnCategory.
zerolbsony Jul 21, 2025
c125407
Resolve the problem the query result is null from MemTable when don't…
zerolbsony Jul 23, 2025
5c63e76
Resolve the problem CI can not be passed sucessfully.
zerolbsony Jul 24, 2025
1709433
Merge codes from master.
zerolbsony Jul 24, 2025
b859d84
Format code
zerolbsony Jul 24, 2025
565f2b6
fix a problem the schema variable is wrong.
zerolbsony Jul 24, 2025
e8b9f57
rollback to original value
zerolbsony Jul 24, 2025
cdb6a0b
format code
zerolbsony Jul 24, 2025
375fe3e
Merge remote-tracking branch 'origin/alter_column_datatype_draft' int…
zerolbsony Jul 24, 2025
b1bd660
Merge code of master into current branch.
zerolbsony Jul 28, 2025
20b9c27
Don't allow alter the data type of column that view table.
zerolbsony Jul 31, 2025
87f9bbc
Adjust some accumulator type of classes for tree model.
zerolbsony Aug 4, 2025
3151c22
Fix unexpected problem in the testLoadAndAccumulator function.
zerolbsony Aug 6, 2025
92ac849
Verify the data type of every column in the tsBlock, if occur their t…
zerolbsony Aug 7, 2025
7a07a50
Adjust some problems.
zerolbsony Aug 8, 2025
c7cc33e
Add some query test case.
zerolbsony Aug 11, 2025
245c36b
Format code.
zerolbsony Aug 11, 2025
6c5e858
Correct the type convert for tsBlock.
zerolbsony Aug 13, 2025
979d946
Add anthor test case.
zerolbsony Aug 14, 2025
2ef03b4
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Aug 14, 2025
e98628f
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Aug 14, 2025
d8b1b96
Support other type transfer to TEXT/STRING type.
zerolbsony Aug 17, 2025
d71eb63
fix bug.
zerolbsony Aug 19, 2025
f95fbce
Verify datatype is contained the same origin so that adapt low version.
zerolbsony Aug 19, 2025
1db4c5c
Used Set<Pair<TSDataType,TSDataType>> structure to optimize code.
zerolbsony Aug 20, 2025
dd51fb4
Change tsfile version
zerolbsony Aug 20, 2025
7d8927d
Merge branch 'master' into alter_column_datatype_draft
jt2594838 Aug 20, 2025
8fda1d9
Add precision settings
zerolbsony Aug 20, 2025
c92f133
For sync metadata.
zerolbsony Aug 23, 2025
9afba5b
Merge branch 'master' into alter_column_datatype_draft_pipe_sync_meta…
zerolbsony Aug 23, 2025
7f22a8a
Fix
zerolbsony Aug 24, 2025
0471962
Test two sqls idempotent in the execute process
zerolbsony Aug 25, 2025
bd21697
Merge code
zerolbsony Aug 30, 2025
889fc57
Avoid to access the statistics in the those metadata constructure tha…
zerolbsony Aug 31, 2025
dd20207
Fix
zerolbsony Aug 31, 2025
8fc7e05
Set the 'modified' value is true so that resolve the problem that the…
zerolbsony Sep 1, 2025
f9831b0
Fix some problems for "Alter column from other type to String/Text type"
zerolbsony Sep 2, 2025
024548e
format code.
zerolbsony Sep 2, 2025
16c8e1b
Resolve the problem that the value of String Data type is transfer to…
zerolbsony Sep 2, 2025
78c215e
Delete unuseful code.
zerolbsony Sep 3, 2025
4896eaa
Fix IT test.
zerolbsony Sep 3, 2025
4c09b3a
Replace tsfile version.
zerolbsony Sep 3, 2025
0a47189
Resolve compatible problems.
zerolbsony Sep 3, 2025
8d88745
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Sep 3, 2025
95b22ca
Fix IT problems, because due to use wrong type of variable to validat…
zerolbsony Sep 4, 2025
8f542df
cause by don't delete completely, verify the value of count() early.
zerolbsony Sep 4, 2025
e379d50
Clear some unuseful codes.
zerolbsony Sep 4, 2025
755704c
Remove unnecessary input parameters.
zerolbsony Sep 7, 2025
b2f6986
Resolve the problem merge statistics will occur "Statistics classes m…
zerolbsony Sep 8, 2025
e7dce2a
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Sep 8, 2025
dc9ea54
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Oct 29, 2025
36f8150
format the code of IT.
zerolbsony Oct 29, 2025
4486400
Carry "testAlterColumnDataTypeIdempotent" IT test to correct position;
zerolbsony Oct 30, 2025
f128cd5
Merge branch 'master' into alter_column_datatype_draft
zerolbsony Nov 26, 2025
8592202
resolve conflict
zerolbsony Dec 5, 2025
56bbaf0
Support alter sql and procedure so that time series data type can be …
zerolbsony Dec 17, 2025
aaa1e26
Add the license description.
zerolbsony Dec 17, 2025
51b547e
Repair all problems for IoTDBAlterTimeSeriesTypeIT
zerolbsony Dec 27, 2025
da6f36b
Resolve the problem that time series value cannot be standard date fo…
zerolbsony Dec 28, 2025
ce83051
Resolve the problem that cannot format standard date string for the a…
zerolbsony Dec 29, 2025
f5ca57d
Add an overlapped data case on the scene of query.
zerolbsony Dec 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@ public void testSetTableColumnCommentIdempotent() throws Exception {
Collections.singletonList("create table test(a tag)"), "COMMENT ON COLUMN test.a IS 'tag'");
}

@Test
public void testAlterColumnDataTypeIdempotent() throws Exception {
testTableConfigIdempotent(
Collections.singletonList(
"CREATE TABLE t1 (time TIMESTAMP TIME,dId STRING TAG,s1 INT32 FIELD)"),
"ALTER TABLE t1 ALTER COLUMN s1 SET DATA TYPE INT64");
}

private void testTableConfigIdempotent(final List<String> beforeSqlList, final String testSql)
throws Exception {
final String database = "test";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@

import static org.awaitility.Awaitility.await;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.fail;

@RunWith(IoTDBTestRunner.class)
Expand Down Expand Up @@ -367,7 +368,8 @@ private void prepareTypeConversionTest(
expectedValues,
tablet.getTimestamps());
} catch (Exception e) {
fail();
e.printStackTrace();
fail(e.getMessage());
}
});
senderSession.close();
Expand Down Expand Up @@ -410,12 +412,18 @@ private void validateResultSet(
int index = 0;
while (dataSet.hasNext()) {
RowRecord record = dataSet.next();
System.out.println("QueryResult: " + record.toString());
System.out.println("Expected: " + timestamps[index] + "-" + values.get(index));
List<Field> fields = record.getFields();

assertEquals(record.getTimestamp(), timestamps[index]);
List<Object> rowValues = values.get(index++);
for (int i = 0; i < fields.size(); i++) {
Field field = fields.get(i);
if (field.getDataType() == null) {
assertNull(rowValues.get(i));
continue;
}
switch (field.getDataType()) {
case INT64:
case TIMESTAMP:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1651,6 +1651,27 @@ private Void randomDeviceDeletion(
}

// check the point count
int finalI = i;
Awaitility.await()
.atMost(5, TimeUnit.MINUTES)
.pollDelay(2, TimeUnit.SECONDS)
.pollInterval(2, TimeUnit.SECONDS)
.until(
() -> {
ResultSet set =
statement.executeQuery(
"select count(*) from table"
+ testNum
+ " where time <= "
+ currentWrittenTime
+ " AND deviceId = 'd"
+ finalI
+ "'");
assertTrue(set.next());
long expectedCnt =
currentWrittenTime + 1 - deviceDeletedPointCounters.get(finalI).get();
return expectedCnt == set.getLong(1);
});
try (ResultSet set =
statement.executeQuery(
"select count(*) from table"
Expand Down Expand Up @@ -1833,7 +1854,8 @@ public void deleteTableOfTheSameNameTest()
@Test
public void testConcurrentFlushAndRandomDeviceDeletion()
throws InterruptedException, ExecutionException, SQLException {
int testNum = 25;
int testNum = 1;
// int testNum = 25;
try (Connection connection = EnvFactory.getEnv().getConnection(BaseEnv.TABLE_SQL_DIALECT);
Statement statement = connection.createStatement()) {
statement.execute("drop database if exists test");
Expand All @@ -1845,9 +1867,12 @@ public void testConcurrentFlushAndRandomDeviceDeletion()
}

AtomicLong writtenPointCounter = new AtomicLong(-1);
// int fileNumMax = 100;
// int pointPerFile = 100;
// int deviceNum = 4;
int fileNumMax = 100;
int pointPerFile = 100;
int deviceNum = 4;
int deviceNum = 2;
List<AtomicLong> deviceDeletedPointCounters = new ArrayList<>(deviceNum);
for (int i = 0; i < deviceNum; i++) {
deviceDeletedPointCounters.add(new AtomicLong(0));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public void setSystemStatus() {
.until(
() -> {
ResultSet resultSet = statement.executeQuery("SHOW DATANODES");

int num = 0;
try {
while (resultSet.next()) {
Expand Down
Loading