Abhisheklearn12 opened a new pull request, #9379:
URL: https://github.com/apache/arrow-rs/pull/9379

   # Which issue does this PR close?
   
   - Closes #9359.
   
   # Rationale for this change
   
   The `arrow-json` crate does not support `RunEndEncoded` arrays. This adds 
read and write support for `RunEndEncoded` arrays in the JSON reader and writer.
   
   # What changes are included in this PR?
   
   - Add `DataType::RunEndEncoded` match arm in `make_decoder` function
   - Add `RunEndEncodedArrayDecoder` that decodes JSON values and run-length 
encodes consecutive equal values
   - Add `DataType::RunEndEncoded` match arm in `make_encoder` function
   - Add `RunEndEncodedEncoder` that maps logical indices to physical indices 
via `get_physical_index()`
   - Add tests for RunEndEncoded read, write, and roundtrip
   
   # Are these changes tested?
   
   Yes. Added seven tests:
   
   - `test_read_run_end_encoded` - tests basic read with consecutive runs
   - `test_run_end_encoded_roundtrip` - tests write then read back
   - `test_read_run_end_encoded_consecutive_nulls` - tests null run coalescing
   - `test_read_run_end_encoded_all_unique` - tests no compression when all 
values unique
   - `test_read_run_end_encoded_int16_run_ends` - tests Int16 run end type
   - `test_write_run_end_encoded` - tests writing string REE array
   - `test_write_run_end_encoded_int_values` - tests writing integer REE array
   
   # Are there any user-facing changes?
   
   Yes. `RunEndEncoded` arrays can now be serialized to and deserialized from 
JSON using the `arrow-json` crate.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to