-
-
Notifications
You must be signed in to change notification settings - Fork 247
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
Returning Vec<Vec<f32>>
produces unexpected results
#1762
Comments
No, we do not currently have support for multidimensional arrays, and when we do, they will not be nested Vecs. |
This is why they should not be nested Vecs: # SELECT array_dims('{{1,2,3,4},{5,6},{7,8,9}}'::int[][]);
ERROR: malformed array literal: "{{1,2,3,4},{5,6},{7,8,9}}"
LINE 1: SELECT array_dims('{{1,2,3,4},{5,6},{7,8,9}}'::int[][]);
^
DETAIL: Multidimensional arrays must have sub-arrays with matching dimensions.
|
OK: thanks for the explanation, and for all your work on this project. |
Vec<Vec<f32>>
produces unexpected results
This bug report could be considered a duplicate of #968 but I am currently considering retooling the RetAbi implementations so that this just does not work. |
I have a function that returns a nested
Vec<Vec<f32>>
:I expected the same results as this:
But instead I get this:
Is this a bug, or have I misunderstood something?
Is there some other way I can return a nested
real[][]
array from a Rust function?The text was updated successfully, but these errors were encountered: