Skip to content

fix(transform): add test of scheduled transform with batch transform#7

Closed
ChihuaYing wants to merge 4 commits into
mainfrom
feat_ych_20260708
Closed

fix(transform): add test of scheduled transform with batch transform#7
ChihuaYing wants to merge 4 commits into
mainfrom
feat_ych_20260708

Conversation

@ChihuaYing

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings July 8, 2026 11:09

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds an integration regression test covering a scheduled transform pipeline that includes a batch python transform followed by a stream python transform, intended to prevent incorrect reuse of previous scheduled inputs.

Changes:

  • Add a new scheduled transform YAML (TransformScheduledBatchTransformBug.yaml) that chains SQL → batch python → stream python tasks.
  • Add a new TransformIT test and a helper verifier to assert scheduled executions produce the expected aggregate result.
  • Modify the main PR test workflow to comment out a large set of CI jobs, leaving only db-ce enabled.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

File Description
test/src/test/resources/transform/TransformScheduledBatchTransformBug.yaml New scheduled transform job definition reproducing the batch+scheduled scenario.
test/src/test/java/cn/edu/tsinghua/iginx/integration/func/udf/TransformIT.java New integration test + helper to validate scheduled batch transform correctness.
.github/workflows/tests.yml Disables (comments out) most CI jobs, significantly reducing PR validation coverage.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +825 to +828
assertTrue(queryResult.getValues().size() >= 2);
for (List<Object> row : queryResult.getValues()) {
assertEquals(expectedSum, row.get(sumIndex));
}
Comment on lines +447 to +448
Thread.sleep(5000L); // wait for the scheduled job to run at least twice
verifyScheduledBatchBugResult(33L);
Comment on lines +452 to +455
} catch (SessionException | InterruptedException e) {
LOGGER.error("Transform: execute fail. Caused by:", e);
fail();
}
Comment thread .github/workflows/tests.yml Outdated
Comment on lines +13 to +18
jobs:
unit-test:
uses: ./.github/workflows/unit-test.yml
unit-mds:
uses: ./.github/workflows/unit-mds.yml
case-regression:
uses: ./.github/workflows/case-regression.yml
with:
metadata-matrix: '["zookeeper"]'
standalone-test:
uses: ./.github/workflows/standalone-test.yml
with:
metadata-matrix: '["zookeeper"]'
standalone-test-no-optimizer:
uses: ./.github/workflows/standalone-test-no-optimizer.yml
with:
metadata-matrix: '["zookeeper"]'
# unit-test:
# uses: ./.github/workflows/unit-test.yml
# unit-mds:
# uses: ./.github/workflows/unit-mds.yml
# case-regression:
@ChihuaYing ChihuaYing closed this Jul 8, 2026
@ChihuaYing ChihuaYing reopened this Jul 8, 2026
@ChihuaYing ChihuaYing closed this Jul 8, 2026
@ChihuaYing
ChihuaYing deleted the feat_ych_20260708 branch July 8, 2026 15:36
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