Parquet: Update Variant reader test to generate shared test cases.#13654
Parquet: Update Variant reader test to generate shared test cases.#13654rdblue wants to merge 5 commits intoapache:mainfrom
Conversation
21ddf9d to
e29f1e7
Compare
| GenericRecord var1 = | ||
| record( | ||
| variantType, Map.of("metadata", VariantTestUtil.emptyMetadata(), "typed_value", arr1)); | ||
| GenericRecord row1 = record(parquetSchema, Map.of("id", 1, "var", var1)); |
There was a problem hiding this comment.
For consistency with other test cases, I changed the row IDs to match the row position in this test case.
| Record record = records.get(i); | ||
| String variantFile = variantFiles.get(i); | ||
|
|
||
| if (variantFile != null) { |
There was a problem hiding this comment.
Nit: for readability, consider flipping the order:
if (variantFile == null) {
// null logic here
} else {
// non-null logic here.
}
|
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 dev@iceberg.apache.org list. Thank you for your contributions. |
|
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. |
This PR updates the reader tests for Parquet so that the Parquet files and matching variants can be saved for cross-language tests.