mbutrovich commented on PR #12420: URL: https://github.com/apache/arrow-rs/pull/12420#issuecomment-7115358762
I ran [arrow-pbt](https://github.com/mbutrovich/arrow-pbt) at [`055ddcb`](https://github.com/mbutrovich/arrow-pbt/commit/055ddcb6aa86df367239ea2f0ea8d18f00f796f1) against `08a6e4fb`. The properties that reach the changed call sites passed at 10 seeds of 10,000 cases each, and all properties passed at 3 seeds of 1,000: ```sh ARROW_PBT_REASONS=1 cargo run -q -- run cast,cast_text,temporal_cast,nullif,shift,concat 1-10 10000 ``` The cases took same-type `cast` 8,022 times, `shift` by 0 13,623 times, `nullif` of an empty or `Null` array 5,009 times, and single-array `concat` 25,177 times. No property casts to run-end encoded, so the [`to_arc` in that branch](https://github.com/apache/arrow-rs/blob/08a6e4fbda9260fbf52c42cce418bce1fe445db8/arrow-cast/src/cast/mod.rs#L646) isn't covered. One output change the properties can't see: `make_array(array.to_data())` dropped a null buffer with no nulls ([`data.rs#L2465`](https://github.com/apache/arrow-rs/blob/08a6e4fbda9260fbf52c42cce418bce1fe445db8/arrow-data/src/data.rs#L2465)), and `to_arc` keeps it. So same-type `cast`, `shift` by 0, and `nullif` of an empty array now return the input's buffer. Nothing documents either behavior, and the only code I found that treats a present buffer as nulls is `RunArray::try_new`, which I filed as #12427. -- 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]
