Skip to content

Fix table delete with renamed time column#17841

Merged
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix_delete_with_nondefault_time_column
Jun 4, 2026
Merged

Fix table delete with renamed time column#17841
jt2594838 merged 2 commits into
apache:masterfrom
Caideyipi:fix_delete_with_nondefault_time_column

Conversation

@jt2594838

Copy link
Copy Markdown
Contributor

Description

This PR fixes table-model DELETE predicate parsing when the TIME column has been renamed. The deletion analyzer now resolves the actual TIME column name from table schema instead of assuming the default time column name.

It also adds i18n messages for the newly added semantic error and covers the renamed-time-column path in unit tests.

Tests

  • mvn spotless:apply -pl iotdb-core/datanode
  • mvn spotless:apply -pl integration-test -P with-integration-tests
  • mvn test -pl iotdb-core/datanode -Dtest=AnalyzeUtilsTest,PredicateUtilsTest

Note: Running IoTDBDeletionTableIT#testDeleteWithRenamedTimeColumn was attempted, but the test class failed in its shared setup/teardown before the case body due to CREATE/DROP DATABASE IF EXISTS test being parsed by the tree-model parser in this local environment.

@Caideyipi Caideyipi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM. I did not find any functional issues in the production change.

@jt2594838
jt2594838 merged commit 187e454 into apache:master Jun 4, 2026
40 of 41 checks passed
@jt2594838
jt2594838 deleted the fix_delete_with_nondefault_time_column branch June 4, 2026 02:33
MileaRobertStefan pushed a commit to MileaRobertStefan/iotdb that referenced this pull request Jun 26, 2026
* reviewed AnalyzeUtils

* Fix delete with non-default time column
JackieTien97 pushed a commit that referenced this pull request Jun 29, 2026
* reviewed AnalyzeUtils

* Fix delete with non-default time column
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