Skip to content

[IOTDB-4866] Fix schema tree bug when append nested device#7925

Merged
MarcosZyk merged 1 commit intoapache:masterfrom
MarcosZyk:template_bug
Nov 8, 2022
Merged

[IOTDB-4866] Fix schema tree bug when append nested device#7925
MarcosZyk merged 1 commit intoapache:masterfrom
MarcosZyk:template_bug

Conversation

@MarcosZyk
Copy link
Contributor

@MarcosZyk MarcosZyk commented Nov 8, 2022

Description

Problem

When appending nested devices into one schema tree in sequence, for example non-aligned device root.sg1.d2.others.ver and aligned device root.sg1.d2, the device node d2 in final schema tree won't be aligned.

Solution

This problem is caused by info missing during node replacement. Add the check when replace internal node d2 with device node d2.

@MarcosZyk MarcosZyk merged commit c17c047 into apache:master Nov 8, 2022
@MarcosZyk MarcosZyk deleted the template_bug branch November 8, 2022 08:32
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