Skip to content

Conversation

@zerolbsony
Copy link
Contributor

Only delete data, but don't delete tsfile when performing a drop column statement on the table model or a drop tag statement on the tree model.

img_v3_02t4_59f67abd-d137-4944-b9fc-8538c51051cg
img_v3_02t4_247f5e80-716b-4991-9a83-eb4229ad688g

@zerolbsony zerolbsony force-pushed the improve_optimize_delete_tsfile branch from b6ef768 to 8b91c88 Compare December 22, 2025 01:28
}

@Test
public void testDropAndAlter() throws SQLException {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the test because it does not make sense.

Comment on lines -3129 to +3141
if (!deletedByFiles.isEmpty()) {
if (!deletedByFiles.isEmpty()
&& !isDropMeasurementExist
&& idPredicateType.equals(IDPredicate.IDPredicateType.NOP)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

image The judgement should be put here.

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