jorgecarleitao commented on pull request #984:
URL: https://github.com/apache/arrow-rs/pull/984#issuecomment-992828156
For reference (for someone not following the gist), a `DictionaryArray` is
essentially
```rust
struct DictionaryArray<K> {
indices: PrimitiveArray<K>
values: Arc<dyn Array>
}
```
that is itemwise represented as `indices.into_iter().map(|optional_index|
optional_index.map(|index| "values[index]"))` where `"values[index]"`
represents the `index` of values.
@alamb 's insight is that we can compare a dictionary with a scalar of the
same (dynamic) type as `values` by comparing `values` with that scalar
(ignoring indices).
--
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]