HaoYang670 opened a new issue, #1901: URL: https://github.com/apache/arrow-rs/issues/1901
**Describe the bug** https://github.com/apache/arrow-rs/blob/master/parquet/src/util/bit_util.rs#L142-L155 **To Reproduce** assert_eq!(log2(0), 0); **Expected behavior** Alter 1: return `Some(n)` when `input > 0` and `None` when `input == 0`; Alter 2: use the std function `core::num::log2` which has not been stable yet. https://doc.rust-lang.org/std/primitive.u64.html#method.log2 Alter 3: panic when `input == 0` (follow the behavior of `num::core::log2`) Alter 4: return `0` when `input == 0` (follow the behavior of `num::core::log2`) **Additional context** Add any other context about the problem here. -- 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]
