Replies: 1 comment 3 replies
-
maybe you can use the code in |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to handle null values in the
update_batch
method of anAccumulator
when defining a UDAF. I've been trying something like the following:... but I get
I was able to make it work for numeric types by sort of mimicking what some of the internal aggregators do:
... but this doesn't seem possible with Strings since calling
values
on aStringArray
returns aVec<u8>
instead of aVec<&str>
(orString
). Is there something I'm doing wrong in the first example where I'm usingflatten
? That should flatten a list of[Some("string"), Some("other string"), None]
to["string", "other string"]
, but I suppose there's something going on internally that's not allowing that to work.Beta Was this translation helpful? Give feedback.
All reactions