Skip to content

Fix SHOW DEVICES limit offset test ordering - #18745

Merged
CRZbulabula merged 1 commit into
apache:masterfrom
CRZbulabula:yongzao/fix-show-devices-limit-offset-test
Sep 28, 2026
Merged

CRZbulabula merged 1 commit into
apache:masterfrom
CRZbulabula:yongzao/fix-show-devices-limit-offset-test

Conversation

@CRZbulabula

Copy link
Copy Markdown
Contributor

Description

Fix IoTDBSimpleQueryIT#testShowDevicesWithLimitOffset so it does not assume a deterministic order for SHOW DEVICES LIMIT 2 OFFSET 1.

SHOW DEVICES has no explicit ordering guarantee. The test now accepts any two distinct devices from the inserted set while retaining the result-count assertion.

Testing

  • mvn spotless:apply -pl integration-test -P with-integration-tests
  • mvn clean verify -DskipUTs -Dit.test=IoTDBSimpleQueryIT#testShowDevicesWithLimitOffset -DfailIfNoTests=false -Dfailsafe.failIfNoSpecifiedTests=false -pl integration-test -am -PClusterIT -P with-integration-tests

This PR has:

  • been self-reviewed.
  • modified an existing integration test.
  • been tested in a test IoTDB cluster.
Key changed/added classes
  • IoTDBSimpleQueryIT

@CRZbulabula
CRZbulabula merged commit ba287a9 into apache:master Sep 28, 2026
36 of 39 checks passed
@CRZbulabula
CRZbulabula deleted the yongzao/fix-show-devices-limit-offset-test branch September 28, 2026 14:09
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