Skip to content

Commit

Permalink
changefeedccl: use parquet with 50% probability in nemeses test
Browse files Browse the repository at this point in the history
Informs: cockroachdb#99028
Epic: CRDB-27372
Release note: None
  • Loading branch information
jayshrivastava committed Jun 21, 2023
1 parent b5f09af commit 0347b35
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/ccl/changefeedccl/cdctest/nemeses.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,11 @@ func RunNemesis(f TestFeedFactory, db *gosql.DB, isSinkless bool) (Validator, er
}
}

foo, err := f.Feed(`CREATE CHANGEFEED FOR foo WITH updated, resolved, diff`)
withFormatParquet := ""
if rand.Intn(2) < 1 {
withFormatParquet = ", format=parquet"
}
foo, err := f.Feed(fmt.Sprintf(`CREATE CHANGEFEED FOR foo WITH updated, resolved, diff %s`, withFormatParquet))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0347b35

Please sign in to comment.