Skip to content

Support altering column/table names of table model#17079

Draft
jt2594838 wants to merge 112 commits intomasterfrom
force_ci/support_schema_evolution
Draft

Support altering column/table names of table model#17079
jt2594838 wants to merge 112 commits intomasterfrom
force_ci/support_schema_evolution

Conversation

@jt2594838
Copy link
Contributor

@jt2594838 jt2594838 commented Jan 26, 2026

The following statements are supported:

ALTER TABLE [IF EXISTS] <oldName> RENAME TO <newName>

ALTER TABLE [IF EXISTS] <tableName> RENAME COLUMN IF EXISTS <oldName> TO <newName>

# Conflicts:
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/source/FileLoaderUtils.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/PlanNodeType.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/PlanVisitor.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/performer/impl/FastCompactionPerformer.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/task/subtask/FastCompactionPerformerSubTask.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/MultiTsFileDeviceIterator.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/executor/fast/FastAlignedSeriesCompactionExecutor.java
#	pom.xml
…ts when regisering table schema, fix concurrent issue of DataNodeTableCache, fix cross compaction selection
# Conflicts:
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/execute/utils/executor/fast/FastAlignedSeriesCompactionExecutor.java
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/compaction/selector/impl/RewriteCrossSpaceCompactionSelector.java
# Conflicts:
#	iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java
@jt2594838 jt2594838 force-pushed the force_ci/support_schema_evolution branch from 7fb5413 to c86f87c Compare March 12, 2026 11:07
Throwable rootCause = ExceptionUtils.getRootCause(exception);
logger.warn(
"Can not send {} to peer for {} times {} because {}",
"v {} to peer for {} times {} because {}",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...

private String oldName;
private String newName;
private List<String> oldNames;
private List<String> newNames;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

May better use "PlanV2" to avoid the stale raft log?

RpcUtils.getStatus(
TSStatusCode.SEMANTIC_ERROR,
String.format(
"Table '%s.%s' is created in a old version and cannot be renamed, "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

an

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants