Skip to content

Commit

Permalink
ORC-1089: Add test cases verifying writers with selected vector (apac…
Browse files Browse the repository at this point in the history
…he#1009)

### What changes were proposed in this pull request?

This pr aims to add test cases specifically to check that writers support the selected vector feature.

`testWriteBaseTypeUseSelectedVector`: For covering base types.
`testWriteComplexTypeUseSelectedVector`: For covering multiple nested types.
`testWriteRepeatedUseSelectedVector`: For covering repeated values.
`testWriteEncryptionUseSelectedVector`:  For covering field encryption.

Test the idea that the value written to one field is associated with the row number and that the other fields are obtained by some transformation of the value of this field. The feature is guaranteed to be correct by checking the selected row number against the read result.

### Why are the changes needed?

Enrich test cases to ensure robustness of feature.

### How was this patch tested?

Pass the commit test cases. Currently marked as disabled first until https://github.com/apache/orc/pull/994/files merged
  • Loading branch information
guiyanakuang authored and cxzl25 committed Jan 11, 2024
1 parent 88e1978 commit b9930d9
Showing 1 changed file with 539 additions and 0 deletions.

0 comments on commit b9930d9

Please sign in to comment.