greenplum-db/plcontainer

PL/Container crashed when convert vector to setof record

HaozhouWang opened this issue · 1 comments

Function

create or replace function test_vtup() returns setof record as
$$
# container:  plc_r_shared
as.vector(array(1:15,c(5,3)))
$$ language plcontainer;

Expected:

select * from test_vtup() as t(f1 int);
 f1 
----
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
(15 rows)

Actual

select * from test_vtup() as t(f1 int);;
ERROR:  plcontainer: Error receiving data from the client. Maybe retry later. (plcontainer.c:336)
CONTEXT:  PLContainer function "test_vtup"

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.