dynamobi/dynamobi — Issue #567: [FRG-305] when FarragoTransformImpl encounters a tuple larger than its buffer, it returns EOS rather than failing
Author: dynamobi-build
Created: 2011-12-30 03:35:38+00:00
State: open
Labels: FRG, JNI Wrapper

[reporter="jvs", created="Thu, 10 Jan 2008 17:22:14 -0500 (GMT-05:00)"]
1. Create a UDF which will return a value larger than the default page size in Farrago (4096).

2. select the UDF and use ORDER BY to put a Fennel sorter plan on top.

3. You'll get back no rows.

See comment in execute method:

// Not enough room to marshal the tuple. We assume that the

// buffer is large enough for at least one tuple, otherwise this

// method may incorrectly return 0 (end of stream).

Can we change this to throw an excn instead in the case where nothing has been marshalled yet? This would be the equivalent of the validateTupleSize in ExecStreamBufAccessor::produceTuple.