Skip to content

Conversation

@rdblue
Copy link
Contributor

@rdblue rdblue commented Jul 23, 2025

This PR updates the reader tests for Parquet so that the Parquet files and matching variants can be saved for cross-language tests.

@rdblue rdblue force-pushed the variant-generate-test-cases branch from 21ddf9d to e29f1e7 Compare July 24, 2025 18:44
GenericRecord var1 =
record(
variantType, Map.of("metadata", VariantTestUtil.emptyMetadata(), "typed_value", arr1));
GenericRecord row1 = record(parquetSchema, Map.of("id", 1, "var", var1));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For consistency with other test cases, I changed the row IDs to match the row position in this test case.

Copy link
Contributor

@anoopj anoopj left a comment

Choose a reason for hiding this comment

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

LGTM

Record record = records.get(i);
String variantFile = variantFiles.get(i);

if (variantFile != null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: for readability, consider flipping the order:

if (variantFile == null) {
// null logic here
} else {
// non-null logic here.
}

@github-actions
Copy link

This pull request has been marked as stale due to 30 days of inactivity. It will be closed in 1 week if no further activity occurs. If you think that’s incorrect or this pull request requires a review, please simply write any comment. If closed, you can revive the PR at any time and @mention a reviewer or discuss it on the [email protected] list. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 30, 2025
@github-actions
Copy link

github-actions bot commented Sep 7, 2025

This pull request has been closed due to lack of activity. This is not a judgement on the merit of the PR in any way. It is just a way of keeping the PR queue manageable. If you think that is incorrect, or the pull request requires review, you can revive the PR at any time.

@github-actions github-actions bot closed this Sep 7, 2025
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.

2 participants