greenplum-db/plcontainer

PL/Container output incorrect results when transfer R matrix to int[]

HaozhouWang opened this issue · 1 comments

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)

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.