greenplum-db/plcontainer

PL/Container output incorrect results when covert R data.frame to int[]

HaozhouWang opened this issue · 1 comments

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)

We have created an issue in Pivotal Tracker to manage this. Unfortunately, the Pivotal Tracker project is private so you may be unable to view the contents of the story.

The labels on this github issue will be updated when the story is started.