HaoYang670 commented on PR #1951: URL: https://github.com/apache/arrow-rs/pull/1951#issuecomment-1168295794
> I am surprised at the amount of code required for this but I tried and couldn't really figure out any better way. There are lots of places in our code where we map `DataType` to `ArrayPrimitiveType`. I am not sure how could we simplify this. Converting `value` to `type` is difficult in Rust (I find some discussions of adding dependent type to Rust, such as https://internals.rust-lang.org/t/pre-pre-rfc-dependable-types-in-rust/15500/4, but no much progress). BTW, `const generic` is always suggested as a workaround approach, I don't find a good way to use it in our code. Any good idea? -- 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]
