askoa commented on issue #3086: URL: https://github.com/apache/arrow-rs/issues/3086#issuecomment-1311777077
I am also having difficulty in removing Optional in below function https://github.com/apache/arrow-rs/blob/01396822eb68a90565cf8b177aab4b0ce8af40e1/arrow-schema/src/field.rs#L133-L138 I changed the function as below ``` #[inline] pub const fn metadata(&self) -> &BTreeMap<String, String> { &self.metadata } ``` and getting lot of compile errors in `decimal.rs`. I don't see how the function `i256::from_le_bytes` is impacted by changing the above function. Any ideas? ``` "cannot call non-const fn `i256::from_le_bytes` in constants\ncalls in constants are limited to constant functions, tuple structs and tuple variants", ``` -- 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]
