Skip to content

Conversation

vikaxsh
Copy link
Collaborator

@vikaxsh vikaxsh commented Sep 19, 2025

Description

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Scenario A
  • Scenario B

Screenshots or Recordings

Related PR's (If Any):

@vikaxsh vikaxsh changed the title feat: integration test for incremental sync feat: integration test for incremental sync and partitioning Sep 29, 2025
streamUpdateCmd := updateStreamsCommand(*cfg.TestConfig, cfg.Namespace, []string{currentTestTable}, true)
streamUpdateCmd := updateSelectedStreamsCommand(*cfg.TestConfig, cfg.Namespace, cfg.PartitionRegex, []string{currentTestTable}, true)
if code, out, err := utils.ExecCommand(ctx, c, streamUpdateCmd); err != nil || code != 0 {
return fmt.Errorf("failed to enable normalization in streams.json (%d): %s\n%s",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Update this error message as well

Comment on lines +360 to +365
streamUpdateCmd = updateSelectedStreamsCommand(*cfg.TestConfig, cfg.Namespace, cfg.PartitionRegex, []string{currentTestTable}, true)
if code, out, err := utils.ExecCommand(ctx, c, streamUpdateCmd); err != nil || code != 0 {
return fmt.Errorf("failed to enable normalization in streams.json for incremental (%d): %s\n%s",
code, err, out,
)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is getting repeated here.

Comment on lines +379 to +390
// Initial incremental run (equivalent to full on first run)
t.Log("Running Incremental - full load")
if err := runSync(c, true, "", "r", cfg.ExpectedData); err != nil {
return err
}

// Delta incremental: add new rows and sync again
t.Log("Running Incremental - inserts")
cfg.ExecuteQuery(ctx, t, []string{currentTestTable}, "insert", false)
if err := runSync(c, true, "", "u", cfg.ExpectedData); err != nil {
return err
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

here as well a test cases array can be created and call that same for loop

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