Skip to content

Conversation

@samarthjain
Copy link
Collaborator

No description provided.

@samarthjain samarthjain force-pushed the fix_vectorized_negative_decimals branch from ba7ab43 to 986fcee Compare November 6, 2020 19:12
private RandomUtil() {
}

private static final Random NEGATIVE_VALUES = new Random();
Copy link
Contributor

Choose a reason for hiding this comment

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

All tests need to use the Random that is passed in so that the values that are generated are deterministic and repeatable. That's what allows us to generated an iterator instead of a list in some cases, and makes it so if we do have a problem, we can repeat the test and debug.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For some reason, TestLocalScan#testRandomData() fails if I use the random passed in to do

boolean negate = random.nextInt(2) == 1

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looks like this caused a test failure in TestSparkParquetWriter#testCorrectness also. Pushed a commit to get rid of the new Random.

Copy link
Contributor

@rdblue rdblue left a comment

Choose a reason for hiding this comment

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

Looks good other than the new Random added in tests. Let's merge after that's fixed.

@rdblue rdblue merged commit 1bebf1a into apache:master Nov 6, 2020
@rdblue
Copy link
Contributor

rdblue commented Nov 6, 2020

Thanks, @samarthjain!

@samarthjain samarthjain deleted the fix_vectorized_negative_decimals branch November 6, 2020 21:57
@rdblue rdblue added this to the Java 0.10.0 Release milestone Nov 16, 2020
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