Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix][FakeSource] fix random from template not include the latest value issue #6438

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

liunaijie
Copy link
Member

Purpose of this pull request

fix the FakeSource template random won't take the latest value issue.

Now using RandomUtils.nextInt(0, list.size() -1) to get the random index, but the Random.nextInt(start, end) the end is not included. so the latest value never will take.
update the Random.nextInt(0, list.size())

Does this PR introduce any user-facing change?

How was this patch tested?

Check list

@hailin0 hailin0 merged commit 6ec16ac into apache:dev Mar 6, 2024
4 checks passed
@liunaijie liunaijie deleted the fakesource-fix branch March 6, 2024 05:15
chaorongzhi pushed a commit to chaorongzhi/seatunnel that referenced this pull request Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants