Skip to content

Conversation

@luoluoyuyu
Copy link
Member

Description

As the title said

This PR has:

  • been self-reviewed.
    • concurrent read
    • concurrent write
    • concurrent read and write
  • added documentation for new or modified features or behaviors.
  • added Javadocs for most classes and all non-trivial methods.
  • added or updated version, license, or notice information
  • added comments explaining the "why" and the intent of the code wherever would not be obvious
    for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold
    for code coverage.
  • added integration tests.
  • been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

- Add SQL syntax support: ALTER TIMESERIES <oldPath> RENAME TO <newPath>
- Implement AliasTimeSeriesStatement and analysis logic
- Implement AliasTimeSeriesProcedure with three-phase state machine:
  * LOCK_AND_GET_SCHEMA_INFO: Lock old path and get schema information
  * TRANSFORM_METADATA: Transform metadata based on three scenarios
  * UNLOCK: Unlock after operation completion
- Implement SchemaRegion methods for alias operations:
  * lockForAlias: Lock and mark series as isRenaming
  * createAliasSeries: Create new alias series with IS_RENAMED and ORIGINAL_PATH
  * markSeriesDisabled: Mark physical series as DISABLED
  * updatePhysicalAliasRef: Update ALIAS_PATH reference
  * dropAliasSeries: Drop alias series
  * enablePhysicalSeries: Enable physical series
  * unlockForAlias: Unlock after operation
- Add PlanNodes for alias operations (LockAliasNode, CreateAliasSeriesNode, etc.)
- Implement automatic database and SchemaRegion creation for new paths
- Add MeasurementInfo properties: IS_RENAMED, IS_RENAMING, DISABLED, ORIGINAL_PATH, ALIAS_PATH
- Support cross-database alias series creation
- All operations use RegionWriteExecutor for consensus consistency
@luoluoyuyu luoluoyuyu marked this pull request as draft December 24, 2025 11:15
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.

1 participant