Skip to content

Table: Ignore null attribute values in insert#17790

Merged
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix/table-attribute-null-insert
Jun 2, 2026
Merged

Table: Ignore null attribute values in insert#17790
jt2594838 merged 1 commit into
apache:masterfrom
Caideyipi:fix/table-attribute-null-insert

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

  • Treat null attribute values in normal table inserts as no-op instead of clearing existing device attributes.
  • Preserve explicit update-null behavior for clearing attributes.
  • For tablet inserts, keep the last non-null attribute value per device in a batch so trailing nulls do not overwrite earlier values.

Tests

  • mvn -DskipTests spotless:apply -pl iotdb-core/datanode -P with-integration-tests
  • git diff --check
  • mvn -Ddevelocity.off=true -pl iotdb-core/datanode -Dtest=TableDeviceSchemaValidatorTest,InsertTabletTest test (blocked before test execution by existing datanode pipe/subscription compilation errors)

@jt2594838
jt2594838 merged commit 7a8079d into apache:master Jun 2, 2026
47 of 56 checks passed
@jt2594838
jt2594838 deleted the fix/table-attribute-null-insert branch June 2, 2026 07:06
MileaRobertStefan pushed a commit to MileaRobertStefan/iotdb that referenced this pull request Jun 26, 2026
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