andygrove commented on PR #627:
URL: https://github.com/apache/datafusion-comet/pull/627#issuecomment-2209210317
Thanks @vaibhawvipul. This is looking good. There is also this section in
`cast.rs`:
```rust
fn cast_array(&self, array: ArrayRef) -> DataFusionResult<ArrayRef> {
let to_type = &self.data_type;
let array = array_with_timezone(array, self.timezone.clone(),
Some(to_type))?;
let from_type = array.data_type().clone();
// unpack dictionary string arrays first
// TODO: we are unpacking a dictionary-encoded array and then
performing
// the cast. We could potentially improve performance here by
casting the
// dictionary values directly without unpacking the array first,
although this
// would add more complexity to the code
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]