-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mishandling of Arrow's null values #2194
Comments
Can you find documentation for this? How are you supposed to get the value out of a vector?? |
The closest I've found is @domoritz saying that toArray() is “often not generating what people want” (ref). I've found the code around here but I'm not fully grokking it. |
Can you give me a minimal example with arrow? I suspect we can improve for (const el of vector) {
console.log(el);
} |
In my real use case, the 0 in the middle was a "random" float32 derived from dirty memory, which made a different chart on each invocation — but the crucial point is that |
In #2115 we did not consider that the arrow vector.toArray() can return anything when a value is null. (See observablehq/framework#1738 for a concrete consequence).
After calling vector.toArray we have to clear out the null values (that can be skipped if there are no nulls).
The text was updated successfully, but these errors were encountered: