polars
polars copied to clipboard
Implement Byte Vector Values
Problem Description
Currently only string is supported but it would be nice to have support for byte vectors
I think you can use List<u8>
for that. Physically it is exact the same as our string type.
How would I do something like binary_col.is_in(list_of_binary_literals)
?
I can create a single binary literal like this: binary_vec.iter().collect::<polars::series::Series>().lit()
but not sure how to create a List<List
Also maybe Literal
trait should be implemented for Vec<u8>
and &[u8]
?
@ritchie46 currently arrow binary datatype isn't supported.
not implemented here: https://github.com/pola-rs/polars/blob/4beb08eba86bfcf8924d1d484fccb78b94c0e48e/polars/polars-core/src/datatypes/field.rs#L113
also here: https://github.com/pola-rs/polars/blob/4beb08eba86bfcf8924d1d484fccb78b94c0e48e/polars/polars-core/src/datatypes/dtype.rs#L6