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