PL/Container output incorrect results when transfer R matrix to int[]
HaozhouWang opened this issue · 1 comments
HaozhouWang commented
Function:
create or replace function test_mia() returns int[] as
$$
# container: plc_r_shared
as.matrix(array(1:10,c(2,5)))
$$ language plcontainer;
Expected:
select test_mia();
test_mia
----------------------------
{{1,3,5,7,9},{2,4,6,8,10}}
(1 row)
Actual:
select test_mia();
test_mia
----------------------------
{{1,2,3,4,5},{6,7,8,9,10}}
(1 row)